prompt

prompt ( string _message , string _default_value , string _title ) : string

Interrupts script execution to ask a free choice question.
Returns answer filled in the input field and null if the user close the box.

Example


nbTasks = prompt("How many tasks do you want to execute", 5)


See also

confirm
alert

Parameters

_message (optional)

Question to ask

_default_value (optional)

The default value to put in the answer field. Empty by default.

_title (optional)

Title of the dialog box