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 webkit should work. Here's a related q
Solution 1:
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).
Solution 2:
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.
Post a Comment for "Yes/no Buttons Instead Of Ok/cancel In A Confirm() Dialog?"