Learn JavaScript
Advanced JavaScript
25.3
Lesson

confirm

confirm() displays a window with a question. The result is true, if the user clicks the OK button and false if the user clicks the Cancel button.