alert method
[This documentation is preliminary and is subject to change.]
Applies to: desktop apps only
Displays a dialog box containing an application-defined message.
This method is not supported for Metro style apps using JavaScript.
Syntax
var retval = window.alert(message);Standards information
There are no standards that apply here.
Parameters
- message [in, optional]
-
Type: BSTR
String 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.
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
You cannot change the title bar of the Alert dialog box.
See also
Build date: 3/8/2012