Posted by: lrrp | September 22, 2005

Attribute for
TABINDEX = integer

Usage Recommendation
use it, but don’t rely on it

TABINDEX is supported by MSIE 4.x and higher and Netscape 6.

the order the fields appear in HTMLNormally, when the user tabs from field to field in a form (in a browser that allows tabbing, not all browsers do) the tab order is the order the fields appear in the HTML code.

with TABINDEX, tab order is anything you likeHowever, sometimes you want the tab order to flow a little differently. In that case, you can number the fields using TABINDEX. The tabs then flow in order from lowest TABINDEX to highest.

This code:







name: TABINDEX=1> comments

email: TABINDEX=2>
department: TABINDEX=3>
...
Marketing
Finance
Development
Production

produces this form:

name: comments
email:
department: …MarketingFinanceDevelopmentProduction

TABINDEX can also be used with , ,

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories