Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Easy question...

Status
Not open for further replies.

andylo

Programmer
Apr 22, 2002
12
0
0
AU
Hi,

This one should be easy for you guys but something I would never thought of, and that's why I don't know how to do it.

I have a form, with 10 input textbox field, from top to bottom. TabIndex from 1 - 10 from top to bottom as well.

And now, I want it to "focus" into textbox number 5 everytime I load the form. I know there is something to do with the keyword focus, but just don't know how to do it.

Can any one give me a hand?

Thanks in advance for help

Andy

 
Set the tab order (tab index property) on your controls so the field that you want focus to go to is the lowest number.

Chip H.
 
Or if you want in the page onload function just call
textboxname.focus()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top