- The alert dialog box displays the message given to it.
- Only an OK response is allowed to the user.
- The script and HTML document halts execution until the user chooses
the OK button.
to let the user know what caused the alert.
- Insufficient information provided in a form.
- Incorrect data entered
- Invalid result
- Service that is unavailable
Add the following line to your program at the start.
Run the program.