Name

alert( ) — NN 2 IE 3 DOM n/a

Synopsis

alert(message)

Displays an alert dialog box with a message of your choice. A single button lets the user close the dialog. The title bar of the window (and the “JavaScript Alert” legend in earlier browser versions) cannot be altered by script.

Returned Value

None.

Parameters

message

Any string.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.