alert

alert is a dialog box with a message and an OK button.

It displays a message to the screen that does not need a response.

Syntax

window.alert(message);

Example

External

Mozilla Developer Network