Fake Alert Box Examples

The buttons on this page create modal dialogs using a Div. The dialog is not an alert. Alerts are triggered by three main JavaScript methods which show alert dialogs: alert, confirm and prompt. You can find examples of JavaScript alerts on the Alerts Page

The following button will display a modal fake alert when clicked. Close the modal alert by clicking [OK].

 


The following button will display a modal dialog when clicked which can also exit by clicking on the background.