JavaScript Window method: alert()
[this page | pdf | back links]
The alert() method (when applied to Window
objects in the JavaScript
BOM) displays text in
an alert box.
It
has the following syntax with the following parameters. It does not return
a value.
window.alert(message)
|
Parameter
|
Required / Optional
|
Description
|
|
message
|
Optional
|
String specifying text
to display in an alert box
|
NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)