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