Click to return to the Reusing Browser Technology home page    
IHTMLWindow2::open Method     IHTMLWindow2::resizeBy Me...     IHTMLWindow2 Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLWindow2::prompt Method


Displays a Prompt dialog box with a message, an input field, and OK and Cancel buttons.

Syntax

HRESULT prompt(
    BSTR message,
    BSTR defstr,
    VARIANT *textdata
);

Parameters

message
String (BSTR) that specifies the message to display in the dialog box.
defstr
String (BSTR) that specifies the default value of the input field. If this parameter is NULL, the dialog box displays the value <undefined>.
textdata
Address of a VARIANT structure that receives the text that the user enters into the input field.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

The title bar of the prompt dialog box cannot be changed.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

See Also

alert, confirm



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.