The window.confirm() function in game.
window.confirm()
A message you want to display in the confirmation dialog.
The player to watch the confirm dialog.
A boolean indicating whether OK (true) or Cancel (false) was selected.
The
window.confirm()
function in game.