What is the basic difference between an alert box and a confirm box?

by:

Web Designing

An alert box is a pop up box that has only one element. That is the OK button. While the confirm box has two buttons the OK and the cancel button.