Compartilhar via


alert method

Displays a dialog box containing an application-defined message.

This method is not supported for Windows apps using JavaScript.

Syntax

HRESULT retVal = object.alert(message);

Parameters

  • message [in, optional]
    Type: BSTR

    BSTR that specifies the message to display in the dialog box.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Standards information

There are no standards that apply here.

Remarks

You cannot change the title bar of the Alert dialog box.

See also

Reference

IHTMLWindow2::confirm

IHTMLWindow2::prompt