Log in
Assorted digital displays showing
numbers in different colours,
format and pixellation
2011-03-07 13:35

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.

The following form, containing an input element with an autofocus attribute, is set to not display with CSS.

↑ Menu
Previous edition ↓