Jump to content

Setting Tabindex To -1


geekdad
 Share

Recommended Posts

In the IE browser you can set the tabindex to -1, which removes the item from the tab order. This is really handy because the body element can be tabbed to. Annoying if you have 5 or more frames because the user has to tab through all of those as well.Is there any way to achieve the same result in FireFox?

Link to comment
Share on other sites

The HTML specification says it should be a number between 0 and 32767. Also, it would be a problem of accessibility if users couldn't tab to certain elements.According to the specification, the <body> element shouldn't be able to be tabbed.

The following elements support the tabindex attribute: A, AREA, BUTTON, INPUT, OBJECT, SELECT, and TEXTAREA.
Link to comment
Share on other sites

The HTML specification says it should be a number between 0 and 32767. Also, it would be a problem of accessibility if users couldn't tab to certain elements.According to the specification, the <body> element shouldn't be able to be tabbed.
Well if you have multiple frames, you can certainly tab to them. It might be the frame that is accepting the tab. But according to the specs then it shouldn't either. But it does.Also there are times when it's appropriate to have something you can't tab to. Its slow for people to have to mouse click then return to the keyboard. If you are trying to build an app to allow the users to tab between frequently used elements and not others, then it's appropriate and useful.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...