Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

1 view
Skip to first unread message

FAQ server

unread,
Apr 13, 2013, 7:00:00 PM4/13/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.

0 new messages