FormInputElement.tabIndex

Method of FormInputElement

New in package 166

Syntax

element.tabIndex = Number

Description

Specifies the position of the form control in the container's tabbing order; can be either a positive number, zero, or null. Controls with tabindex == null are excluded from the tab order. Currently, only (editable) field controls participate in the tabbing order.

Tabbing navigation is performed according to the following rules:

  1. Controls with a positive tabIndex value are navigated first. Navigation proceeds from the control with the lowest tabindex value to the control with the highest value. Values need not be sequential nor must they begin with any particular value. Controls that have identical tabindex values will be navigated in the order they have been inserted in the form.
  2. Controls with a tabIndex == 0 are navigated next, in the order they have been inserted in the form.
  3. Controls that are disabled, read-only, or have tabIndex == null do not participate in the tabbing order.

Example

See Also

http://www.w3.org/TR/html401/interact/forms.html#adef-tabindex

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.