...

View Full Version : How to change default behavior of confirm() method



kashana
09-21-2005, 10:07 AM
Hi all,

While fixing a bug, my client ask me to change the defualt behaviour of the confirm() method of javascript.

If we use confirm() it gives two choices after the message OK and Cancel. By default the focus is on OK, do any one know how to change this default behaviour of confirm().
Help will be appreciated

glenngv
09-21-2005, 10:18 AM
No, it's not possible.

nikkiH
09-21-2005, 02:39 PM
If this is for MSIE, you can use vbscript MsgBox (http://asp.programmershelp.co.uk/vbscriptmsgbox.php).
I think you can choose the default button with that one.

Otherwise, yup, you're SOL. Roll your own.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum