3

In an Adobe AIR (HTML/JS) app, is it possible to display Yes/No buttons, instead of OK/Cancel in a confirm() dialog?

Anything that works with should work.

Here's a related question, but all of the answers utilise jQuery, which I don't want to add just for this.

Community
  • 1
  • 1
Danny Beckett
  • 20,529
  • 24
  • 107
  • 134

2 Answers2

3

I don't believe so. In JS, confirm() is specified to only use the OK and Cancel buttons.

If you want something more complicated, you'll have to make your own dialog, or use a third-party one that provides your desired functionality (yes, including jQuery, unfortunately).

paxdiablo
  • 854,327
  • 234
  • 1,573
  • 1,953
1

It's not possible to customise the confirm() dialog.

There are some suggestions at Javascript Customize Confirm with "Yes" or "No" but it pins down to using jQuery or implementing your own version of the jQuery dialog.

Community
  • 1
  • 1
SteveP
  • 18,840
  • 9
  • 47
  • 60