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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you determine the tab order at runtime?

Status
Not open for further replies.

JScannell

Programmer
Jan 9, 2001
306
US
I've got a strange problem. I have explicitely set my tabindex to a number from 0 - 30 for the controls on my page. However, if I position my focus into control #0 and hit tab, it goes to control #1, but I have to hit 10 tabs before it focuses on control #2 (along the way it even focuses on the address bar!). What the heck is going on?

I have an asp.net web page that is utilizing a master page. the master page does have some buttons and links, but I checked and there aren't any tabindex values at all on that page.

Thanks in advance,

Jerry Scannell
 
I went through my entire page adding z-index styles to each control. that didn't help. I then changed all my tabindex so they started with 1 instead of 0, and still no good.

There is something interrupting the tab sequence such that I have to hit the tab key 5 times in order for tabbing to occur between the first and second control. After that it's perfect. Even hitting tab on the last control brings me right up to the first one.


Jerry Scannell
 
If you read the article I posted, you will see that the browser's controls have a tabindex starting at 0 to ?? Z-Index has nothing to do with it. Start your controls at tabindex = 5 and try it. If it doesn't work, try 10 and test again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top