FAQ Topic - How do I change the confirm box to say yes/no or default to cancel? (2013-06-16)

48 views
Skip to first unread message

FAQ server

unread,
Jun 15, 2013, 7:00:00 PM6/15/13
to
-----------------------------------------------------------------------
FAQ Topic - How do I change the confirm box to say yes/no
or default to cancel?
-----------------------------------------------------------------------

The buttons on a confirm box cannot be changed, nor can a default
button be specified.

Change the question to a statement so that "OK" is suitable as the
default response.

Example:
"Would you like us to charge your credit card?" (wrong)
"We will now charge your credit card." (right).


The complete comp.lang.javascript FAQ is at
http://jibbering.com/faq/

--

The sendings of these daily posts are proficiently hosted
by http://www.pair.com.

Reply all
Reply to author
Forward
0 new messages