Tab Order on Form

Is there a way of specifying the tab index of input fields on a form so that you can control the tab order?

If so is this browser specific?

LVL 13
George HirstAsked:
Who is Participating?
CJ_SConnect With a Mentor Commented:
<input type=text tabindex=1> etc.

It works in IE, but am not sure about netscape...

CJ is right about tabindex.  It works for IE4+ and Netscrape 6

For cross-browser you have to use the blur event point to the next field:

<input type="text" name="field1" onblur="document.myform.field2.focus()">

it is a bit of work for a bit for.  All the fields should be named, and then you have to add the onBlur to each one.  Also more difficult to maintain.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.