Click to return to the Reusing Browser Technology home page    
IHTMLWindow2 Interface     IHTMLWindow2::blur Method     IHTMLWindow2 Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLWindow2::alert Method


Displays an Alert dialog box with a message and an OK button.

Syntax

HRESULT alert( 
    BSTR message 
);

Parameters

message
String (BSTR) that specifies the message to display in the dialog box.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

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

Windows CE

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

See Also

confirm, prompt



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.