alert method (window)
Displays an alert window with the specified message and an OK button.
This method makes it possible to notify the user about important information. Script execution does not continue until the alert method returns (the user presses the OK button or closes the alert window).
You can find the related objects in the Supported by objects section below.
|Optional. String that specifies the text for the message in the dialog box. Default is an empty string. This parameter is required in Firefox.|
This method has no return value.
Example HTML code 1:
This example illustrates the use of the alert method.
Did you find this example helpful?
User Contributed Comments