Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap

Q2084 How can I control the tab order in my form?

You are here: irt.org | FAQ | HTML | Q2084 [ previous next ]

In IE 4+ and NN 6+ you can use the TABINDEX attribute to control the tab order inside a form. It takes a numerical value which specifies the tab order of the element, e.g.:

<form action="..." method="post">
<input tabindex="1" type="text" name="field1">
<input tabindex="4" type="text" name="field4">
<input tabindex="3" type="text" name="field3">
<input tabindex="2" type="text" name="field2">
<input tabindex="5" type="submit" name="submit">

You can read more in the HTML 4.0 Specification.

Feedback on 'Q2084 How can I control the tab order in my form?'

©2018 Martin Webb