?
Solved

Tab Order on Form

Posted on 2001-09-13
2
Medium Priority
?
173 Views
Last Modified: 2010-04-09
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?

TIA
0
Comment
Question by:Philip Pinnell
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 22

Accepted Solution

by:
CJ_S earned 200 total points
ID: 6479187
<input type=text tabindex=1> etc.

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

regards,
CJ
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6479212
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.

Cd&
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question