Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | HTML | Q2084 [ previous next ]

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

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">
</form>

You can read more in the HTML 4.0 Specification.

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


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.