Displays a confirm dialog box with the specified message and OK and Cancel buttons.
Core function
Syntax
Confirm( message )
Parameters
Parameter | Description |
---|---|
message | String message to display. |
Description
Confirm is a top-level function and is not associated with any object.
Use the confirm method to ask the user to make a decision that requires either an OK or a Cancel. The message argument specifies a message that prompts the user for the decision. The confirm method returns true if the user chooses OK and false if the user chooses Cancel.
Examples
To create an Confirm dialog: