Managing focus for modal dialogs
Paul Adam's model dialog examples
- Capturing focus within the modal dialog
- Setting focus to the dialog initially, and setting focus correctly when the dialog is dismissed.
- Makes it possible to insert the modal dialog in arbitrary locations in the DOM