Skip to content

From Our Blog

Javascript alert confirmation yes/no

javascript alert confirmation yes/no

You're probably looking for confirm(), which displays a prompt and returns true or false based on what the user decided: if (confirm('Are you sure you want to. The confirm() method displays a dialog box with a specified message, along with an OK and a Cancel button. A confirm box confirm(), Yes, Yes, Yes, Yes, Yes. No, using alerts, prompts and confirms are considered disruptive to the user and should be avoided unless you are using them to test. If you want.

Related Videos

JavaScript Tutorial in Hindi Part 15: Confirm Box in JavaScript with yes no option in Hindi Use window. If the user clicks "Cancel", the box returns false. Question feed. New User? Last modified: Aug 22,by MDN contributors. javascript alert confirmation yes/no

4 thoughts on “Javascript alert confirmation yes/no

  1. Raju Roy says:

    वहुत ही सुन्दर तरीका समझाने का

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll Up