A confirm box is often used if you want the user to verify or accept something. When a confirm box pops up, the user will have to click either “OK” or “Cancel” to proceed. If the user clicks “OK”, the box returns true. If the user clicks “Cancel”, the box returns false.The window object also provides the confirm method, which allows you to display a dialog box containing a text message followed by two buttons the user can use to acknowledge the message or reject it and close the dialog box. Typically these buttons are labeled OK and Cancel..
DOWNLOAD SOLUTION HERE