Window alert () method
Definition and Usage
alert () method is used to display with a specific message and a warning confirmation box buttons.
grammar
alert(message)
Browser Support
All major browsers support alert () method
Examples
Examples
Displays an alert box:
<Script>
function myFunction () {
alert ( "Hello, I'm a warning box!");
}
</ Script>
function myFunction () {
alert ( "Hello, I'm a warning box!");
}
</ Script>
try it"
More examples
Window object