1
1
Fork 0
mirror of https://github.com/boxgaming/qbjs.git synced 2024-05-12 08:00:12 +00:00
2 Dom.Prompt
boxgaming edited this page 2023-09-25 13:53:13 -05:00

Instructs the browser to display a dialog with an optional message prompting the user to input some text, and to wait until the user either submits the text or cancels the dialog.

Syntax

result = Dom.Prompt ([message$] [, defaultValue])

Parameters

  • The optional message$ parameter specifies the text to display in the dialog.
  • The optional defaultValue parameter specifies the text to display in the text input field.

Returns

A string containing the text entered by the user.

See Also

Window.prompt
Dom.Alert
Dom.Confirm