JavaScript How to use window.confirm() How to use the confirm() method offered by browsers to allow the user to confirm