Util.confirm() Method
Displays the given text in a message box with OK/Cancel buttons. Returns True if OK was clicked, False if Cancel was clicked.
Syntax
Util.confirm(Message)
The method syntax has these parts:
Part |
Description |
Message (String) |
message to display |
Return (Boolean) |
True if OK is clicked, False if Cancel is clicked. |
Remarks
Display the message in a Win32 message box with the "question mark" icon and both an OK and a Cancel button. True is returned if OK is clicked, else False is returned. This duplicates the intrinsic confirm() function found in JScript v3 and earlier, and in Internet Explorer 5 as Window.confirm(). 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.
Copyright © 2000-2016, Robert B. Denny, Mesa, AZ