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? (2009-07-10)

0 views
Skip to first unread message

FAQ server

unread,
Jul 9, 2009, 7:00:03 PM7/9/09
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 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.

Peter Michaux

unread,
Jul 11, 2009, 11:05:52 PM7/11/09
to
On Jul 9, 4:00 pm, "FAQ server" <javascr...@dotinternet.be> wrote:
> -----------------------------------------------------------------------
> 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 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"

Probably best to keep that question confusing. ;-)

Peter

David Mark

unread,
Jul 12, 2009, 3:29:37 AM7/12/09
to

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."

0 new messages