Samaritan's Purse

PROMPT

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

It returns the value of the text control if the user clicks OK and null if the user clicks Cancel.

A default value may be used in the text control.

SYNTAX

result = window.prompt(message[, default])

EXAMPLES

EMPTY

MESSAGE

DEFAULT

INTERNAL

alert

confirm

EXTERNAL

Web Hypertext Application Technology Working Group (WHATWG)