Displays a dialog box containing an application-defined message.
Syntax
window.alert([sMessage])
Parameters
sMessage Optional. String that specifies the message to display in the Alert dialog box. If no value is provided, the dialog box contains no message.
Return Value
No return value.
Remarks
You cannot change the title bar of the Alert dialog box.
Applies To