Programmer's Guide > Interfaces > Application interface > alert method
  
alert method
Displays an alert dialog box with the specified message.
alert(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 "Alert".
Returns
void