Wednesday, July 2, 2008

Forms: Tabbing with tabindex

A text input area can be activated by tabbing to it. The tabbing order can be changed by the tabindex attribute. The value of this attribute is a number greater than 0. Pressing the tab key will cycle the focus starting with the object with the tabindex of 1 to those with higher values.
example:
<input tabindex="1" type="password" size="15" maxlength="10" name="accesscode" >

No comments: