Used to indicate whether the element can have the focus. By setting this to 'ignore', you can disable focusing the element, which means that the user will not be able to activate the element. The element will be skipped in the tab sequence. A similar property 'user-focus' was proposed in early drafts of a predecessor of css3-ui but was rejected by the working group.
- The element does not accept the keyboard focus and will be skipped in the tab order.
- The element can accept the keyboard focus.
textboxelements, because the
textboxitself never takes focus. Instead, XBL creates an anonymous HTML
<input>element inside the
textbox, and that element is what receives focus. You can stop the
textboxfrom taking keyboard focus by setting its tab index to -1, and from taking mouse focus by preventing the default action of