promptprompt*
*Contents  *Index  *Topic Contents
*Previous Topic: previousPage
*Next Topic: queryCommandEnabled

prompt

Description

Displays a Prompt dialog box with a message and an input field.

Syntax

object.prompt([message [, inputDefault]])

ParameterDescription
message Optional. (String) String to display.
inputDefault Optional. (String) String or integer that represents the default value of the input field.

Return Value

Returns the value that the user types in.

Remarks

If the inputDefault parameter is not supplied, the dialog box displays the value <undefined>. You have no control over the title of the prompt box.

Applies To

window


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.