What is the difference between the alert() and confirm() methods?
The alert() method displays a message box with just an ok button to close the box. The confirm() method also has a cancel button and returns true if the ok button is pressed and false if the cancel button is pressed.


