5 out of 9 rated this helpful - Rate this topic

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

window
Reference
confirm
prompt

 

 

Build date: 3/8/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ