Accessible Modal Dialogs from Scratch

This document demonstrates a working modal dialog developed with no external dependencies. It includes the minimal amount of HTML, JavaScript and CSS to power the modal, and nothing else.

You can spawn the modal by clicking the following link, which simulates a prompt to close the current document (regardless of how you respond to the modal, the document will not closed).

Close Window (spawn modal)

Features Include...

Source Code

The source is availble in Github: https://github.com/meagar/accessibility/tree/master/modal/js