- What is the purpose of the confirm dialogue box?
- What is the type of data returned by the confirm dialog?
- What is the purpose of confirm dialogue box in Javascript?
- What happens when a user clicks OK in a confirm dialog?
What is the purpose of the confirm dialogue box?
Confirmation dialog (sometimes called warning alert boxes) is a dialog box that asks user to approve requested operation. Usually this dialog appears before a potentially dangerous operation is performed (program termination, file deletion, etc.)
What is the type of data returned by the confirm dialog?
Javascript | Window confirm() Method
message is the optional string to be displayed in the dialog. It returns a boolean value indicating whether OK or Cancel was selected (true means OK and false means that the user clicked cancel).
What is the purpose of confirm dialogue box in Javascript?
A confirm box is often used if you want the user to verify or accept something. When a confirm box pops up, the user will have to click either "OK" or "Cancel" to proceed. If the user clicks "OK", the box returns true. If the user clicks "Cancel", the box returns false.
What happens when a user clicks OK in a confirm dialog?
The confirm() method returns true if the user clicked "OK", otherwise false .