Is it possible to cancel an <a href="...">
from being tabstopped in any browser? I would like to do this without Javascript.
views:
943answers:
3
A:
No.
The closest you could come is to apply a tabindex attribute to every other focusable element so that the anchor comes last in the tab order.
However, if you want this, then you are probably doing something wrong in the first place.
(And I assume you mean href
rather than src
)
David Dorward
2009-10-13 15:43:14
+3
A:
Some of the browsers support the "tabindex="-1" attribute, but not all of them, since this is not a standard behaviour.
Roberto Aloi
2009-10-13 15:43:57
Oh great! Thanks! I've checked with FF3.5, IE8 and CH3 and it work in all three. Thanks a million!
Robert Koritnik
2009-10-13 16:40:16
A:
I think you could do this by javascript, you override the window.onkeypress or onkeydown, trap the tab button, and set the focus at the desired order.
Ammosi
2010-09-30 15:04:23
I don't know whether you've checked other answers especially accepted one that was answered about a year ago and solved this problem **without** using Javascript.
Robert Koritnik
2010-09-30 16:44:22