This topic has not yet been rated - Rate this topic

prompt method

Displays a dialog box that prompts the user with a message and an input field.

This method is not supported for Windows Store apps built for Windows using JavaScript.

Syntax


VARIANT retVal = object.prompt(message, defstr);

Parameters

message [in, optional]

Type: BSTR

BSTR that specifies the message to display in the dialog box. By default, this parameter is set to "".

defstr [in, optional]

Type: BSTR

BSTR that specifies the default value of the input field. By default, this parameter is set to "undefined".

Standards information

There are no standards that apply here.

Remarks

The title of this dialog box cannot be changed.

Windows Internet Explorer 7 and later. By default, this method is blocked by the information bar in the Internet zone. This helps prevent malicious sites from initiating spoofing attacks. For more information, please see WebBrowser Customization.

 

 

Build date: 11/12/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.