confirm method
Displays a modal confirmation dialog box with the specified message.
confirm(message [, title] )
Parameters
String message
Specifies the message to display in the dialog box
String title
[optional] Specifies the dialog box title. If omitted, the title defaults to "Confirm".
Returns
boolean. Returns true if the user clicks OK. Returns false if the user clicks Cancel.
¿Fue esto útil?