EN
このコンテンツは設定された言語で表示できません。英語版のページが表示されます。

alert method

Displays a dialog box containing an application-defined message.

This method is not supported for Windows Store apps using JavaScript.

Syntax

var retval = window.alert(message);

Parameters

message [in, optional]

Type: String

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.

Standards information

There are no standards that apply here.

Remarks

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

See also

window
Reference
confirm
prompt

 

 

表示:
© 2015 Microsoft