Programmer's Guide > Interfaces > Application interface > confirm method
  
confirm method
Displays a modal confirmation dialog box with the specified message.
confirm(message [, title] )
Parameters
Stringmessage
Specifies the message to display in the dialog box
Stringtitle
[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.