The window.confirm() method displays a modal dialog with an optional message and two buttons, OK and Cancel.
Now, let's take the following example:
result = window.confirm(message);
Here, message is the optional string to be displayed in the dialog and result is a boolean value indicating wheth...