Modal dialogs should capture focus and retain it until closed. This requires:
Any input device should be able to close the dialog. This example uses focusable (tabbable) buttons as well as the ESC key. Focus should then return to the previously active element.
Accordingly these dialogs should work well with pointer devices (mouse, touch screen, etc.) or keyboard tabbing.
This demo uses HTML that is not backwards compatible with outdated browsers.