The alert() method displays an alert box with a specified message and an OK button. An alert box is often used if you want to make sure information comes through to the user.
Example: 1
Example: 2
Example: 3