TOC PREV NEXT INDEX

domref



window.alert()


Display an alert dialog with the specified text.

Syntax

window.alert(text)
 

Parameters

text is a string of the text you want displayed in the alert dialog.

Example

window.alert("I'm a Scorpio!");
 

Notes

The alert dialog should be used for messages which do not require any response of the part of the user. See also window.confirm(), window.prompt().

Specification

DOM Level 0. Not part of specification.
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX