prompt()

Shorthand function for the ExtendScript default Window.prompt(). Normally, you can use either promt() and Window.prompt(). This shorthand is added because RoboHelp doesn't support the shorthand.

The method prompt is located in the file misc.jsxinc.

Usage

var name = prompt("What is the name of your pet?");

Parameters

Parameter Data type Required Description
message String The string for the displayed message.
preset String   The initial value to be displayed in the text edit field.
title String   A string to appear as the title of the dialog. This appears in the window’s frame The default title string is “Script Prompt”.

Return values

Value Meaning
string The string the user supplied.