Solved

form tab index/order

Posted on 2007-12-01
3
192 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:Alan-Yeo
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
Sinoj Sebastian earned 500 total points
Comment Utility
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:Alan-Yeo
Comment Utility
Perfect straight forward answer :D thank you
0
 
LVL 12

Expert Comment

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

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now