Solved

form tab index/order

Posted on 2007-12-01
3
202 Views
Last Modified: 2010-04-21
Hey i have a form on a page, how can i force the first input field to be the first in the tab order and already selected?
0
Comment
Question by:Antonio King
[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
3 Comments
 
LVL 12

Accepted Solution

by:
Sinoj Sebastian earned 500 total points
ID: 20388787
you can use TABINDEX property to get the taborder

<INPUT id="name" TABINDEX=1>
<INPUT id="email" TABINDEX=2>
etc..

and on the body tag   onload="document.getElementById('name').focus();"
0
 

Author Closing Comment

by:Antonio King
ID: 31412119
Perfect straight forward answer :D thank you
0
 
LVL 12

Expert Comment

by:Sinoj Sebastian
ID: 20389006
Thanks for the Points, Grade and take me to a new level "Master in JavaScript"
:)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

707 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