DHTML Methods
Displays a dialog box containing an application-defined message.
window.alert ( [ sMessage ] )
sMessage |
Optional. String to display in the Alert dialog box. If no value is provided, the dialog box will have no message. |
No return value.
The title bar of the Alert dialog box cannot be changed.
The following script will display a simple Alert dialog box.
alert ( "Welcome to the Workshop" );
Show me
window
confirm, prompt