confirm()

This method is used to display a message box with a message and two clickable buttons, the buttons being OK and CANCEL. A click onm the OK button returns a value of TRUE, a click on the CANCEL button returns a value of FALSE.

syntax:

confirm(message text)

This method is used with the following:

window