confirmDialog (deprecated)
Simple Confirm Dialog
var ok = confirmDialog("Would you like to continue?");
if (ok) {
// the user pressed 'OK'
} else {
// the user pressed 'Cancel'
}Confirm Dialog with a Title
var ok = confirmDialog("Warning", "Would you like to continue?");
if (ok) {
// the user pressed 'OK'
} else {
// the user pressed 'Cancel'
}Customizing the Button Text
Customizing the button color
Last updated