Is it possible to cancel an <a href="...">
from being tabstopped in any browser? I would like to do this without Javascript.
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
-
Why does the box-shadow property not apply to a
Some browsers support the
tabindex="-1"
attribute, but not all of them, since this is not a standard behaviour.Remove the
href
attribute from your anchor tagModern, HTML5 compliant, browsers support the
[tabindex]
attribute, where a value of-1
will prevent the element from being tabbed to.I think you could do this by javascript, you override the
window.onkeypress
oronkeydown
, trap the tab button, and set the focus at the desired order.You could apply a JQuery handler to the element you want to target multiple elements with no tab stop.
Would be one way to do it....