Modal Windows
a modal window that appears over the current pageThis opens a “window” over the current document, blocking access to the page until the modal is dismissed by either clicking outside it or clicking the close button.
Full functionality is available without JavaScript, and care has been taken to preserve the navigation history (back/forward works).
To create a modal, use markup like so:
1 |
|
Then, to activate it, simply make an anchor:
<a href="#modal-foo">Open modal</a>