Export (0) Print
Expand All

alert method

Displays a dialog box containing an application-defined message.

This method is not supported for Windows Store 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

 

 

Community Additions

ADD
Show:
© 2014 Microsoft