The buttons on a confirm box cannot be changed, nor can you
specify a default button. However, you should be able to change
the question so that "OK" is suitable as the default.
e.g. change "We will now buy ourselves a Porsche with your credit
card, Do you want to continue with this transaction _OK_ Cancel"
to "We will now buy ourselves a Porsche with your credit card,
Would you like to abandon this transaction? _OK_ Cancel"
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.
Probably best to keep that question confusing. ;-)
Peter
It's not about the default as the FAQ implies. It's not even supposed
to be a question for OK/Cancel. For that type of interaction, you
should use a statement.
"We will now charge a Porsche to your credit card."