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 fake alert when clicked.

 


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