Menu
Riverview Church

CONFIRM

confirm displays a prompt with a message, OK, and Cancel and waits for the user to respond.

It returns true if the user clicks OK and false if the user clicks Cancel.

SYNTAX

result = window.confirm(message)

EXAMPLES

EMPTY

MESSAGE

INTERNAL

alert

prompt

EXTERNAL

Web Hypertext Application Technology Working Group (WHATWG)