Skip to content

Dom.Prompt

boxgaming edited this page Sep 25, 2023 · 2 revisions

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

Clone this wiki locally