Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Summary

The alert function displays a modal dialog box with a message representing the input.

Method of

Install object

Syntax

void alert ( String message );

Parameters

The message parameter is displayed as a string in the dialog box. If message is not a string, then it is converted into one and displayed.

Returns

Nothing.

Document Tags and Contributors

 Contributors to this page: Sheppy, ethertank, trevorh, Fredchat, Rod Whiteley
 Last updated by: Sheppy,