Basic JavaScript Question:
Download Questions PDF

What is the difference between an alert box and a confirmation box?

Answer:

An alert box displays only one button which is the OK button whereas the Confirm box displays two buttons namely OK and cancel.

Download JavaScript Interview Questions And Answers PDF

Previous QuestionNext Question
How to access an external JavaScript file that is stored externally and not embedded?What is a prompt box?