confirm
Description
The confirm of Prompts for JS displays a modal OK/Cancel prompt with the given message, waits for the user to dismiss it, and returns true if the user clicks OK and false if the user clicks Cancel.
Syntax
result = window.confirm(message)
Parameters
message
A string to display in the prompt.