Search code examples
javascriptairwebkit

Yes/No buttons instead of OK/Cancel in a confirm() dialog?


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.


Solution

  • 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).