Answers

Question and Answer:

  Home  Website Developer

⟩ Tell us what Is The Difference Between <Alert()> And <Confirm()> Popup Boxes?

The <alert()> method displays a message in a popup box and has only one <Ok> button.

But the <confirm()> method asks for confirmation from the user so that it can get the opinion of visitors. It has two buttons i.e. <Yes> and <No>.

In short, <alert()> popup is to display the messages to the users whereas the <confirm()> dialog is good for knowing the choices of the visitors.

 149 views

More Questions for you: