Jump to content

Setting Tabindex To -1


geekdad

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...