Disable X button in javascript confirm alert
Web Development
2
Posts
2
Posters
0
Views
1
Watching
-
I need to disable confirm alert x button because when the user clicks X its takes as okay option. Thanks in Advance
jebin k wrote:
when the user clicks X its takes as okay option
No. This is incorrect. If the user click X then it will return "false". Try to alert the return value like this
alert(confirm("d"));
. If you want to remove X fromcomfirm()
, it is not possible. So, you probably need to use the Javascript popup instead ofconfirm()
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)