From: FAQ server on
-----------------------------------------------------------------------
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.

From: Dr J R Stockton on
In comp.lang.javascript message <4bd4c97b$0$286$14726298(a)news.sunsite.dk
>, Sun, 25 Apr 2010 23:00:03, FAQ server <javascript(a)dotinternet.be>
posted:

>FAQ Topic - How do I change the confirm box to say yes/no
>or default to cancel?

That box also has the deficiency of being hard to read in some browsers.

It would be nice to have added code for generating a pop-up window to be
used in a similar manner. Coders of that would need to test whether it
actually appeared, e.g. by popping a test question.

--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05.
Web <URL:http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
PAS EXE etc : <URL:http://www.merlyn.demon.co.uk/programs/> - see 00index.htm
Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.