IHTMLWindow2::promptIHTMLWindow2::prompt*
*



Contents  *



Index  *Topic Contents
*Previous Topic: IHTMLWindow2::open
*Next Topic: IHTMLWindow2::put_defaultStatus

IHTMLWindow2::prompt


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

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

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

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

See also alert, confirm


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