Compartilhar via


confirm method

Displays a confirmation dialog box that contains an optional message as well as OK and Cancel buttons.

This method is not supported for Windows apps using JavaScript.

Syntax

 retVal = object.confirm(message);

Parameters

  • message [in, optional]
    Type: BSTR

    BSTR that specifies the message to display in the confirmation dialog box. If no value is provided, the dialog box does not contain a message.

Standards information

There are no standards that apply here.

Remarks

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

See also

Reference

IHTMLWindow2::alert

IHTMLWindow2::prompt