How Do You Use Confirm () Command In JavaScript?
How Do You Use Confirm () Command In JavaScript? The confirm() method is used to display a modal dialog with an optional message and two buttons, OK and Cancel. It returns true if the user clicks “OK”, and false otherwise. It prevents the user from accessing other parts of the page until the box is