TABINDEX = integer
TABINDEX is supported by MSIE 4.x and higher & Netscape 6.
Normally, while the user tabs from field to field in a form (in a browser that permits tabbing, not all browsers do) the tab order is the order wherein the fields appear in the HTML code.
Though, sometimes you wish the tab order to flow a little differently. In that particular case, you can number the fields via TABINDEX. Then the tabs flow in order from the one along with the lowest TABINDEX to the highest.
The code below specifies this:
<HTML>
<BODY>
<TABLE BORDER CELLPADDING=3 CELLSPACING=5
BGCOLOR="#FFFFCC">
<TR>
<TD>name: <INPUT NAME="realname" TABINDEX=1></TD>
<TD ROWSPAN=3>comments<BR>
<TEXTAREA COLS=25 ROWS=5
TABINDEX=4></TEXTAREA></TD></TR>
<TR> <TD>email: <INPUT NAME="email" TABINDEX=2></TD></TR>
<TR> <TD>department: <SELECT NAME="dep" TABINDEX=3>
<OPTION VALUE="">...
<OPTION VALUE="mkt">Marketing
<OPTION VALUE="fin">Finance
<OPTION VALUE="dev">Development
<OPTION VALUE="prd">Production</SELECT></TD></TR>
</TABLE>
</HTML>
TABINDEX can also be used along with <A>, <TEXTAREA>, <INPUT> and
<BUTTON>.