Util.alert() Method

Displays a message box containing the given message and the exclamation point icon.

Syntax

Util.alert(Message)

The method syntax has these parts:

Part Description
Message (String) message to display
Return (Nothing) Does not return a value.

Remarks

Display the message in a Win32 message box with the "exclamation" icon and only an OK button. Nothing is returned. This duplicates the intrinsic alert() function found in JScript v3 and earlier, and in Internet Explorer 5 as window.alert(). This useful function is not intrinsic in JScript V5, so it is supplied here as a convenience. Use MsgBox() in VBScript to access the full capabilities of Win32 message boxes.

Will raise an error if the console script was aborted prior to displaying the alert box. This is mostly useful when called from components used by a script.