Example 16: Autofocus on unfocusable form control
The following tests whether the hidden INPUT element below is incorrectly (attempted to be) focused upon. Attempting to focus on hidden form controls raises an exception in MSIE.
form, containing an
input element with an
autofocus attribute, is set to not display with CSS.