How to REALLY focus a link using jQuery / javascript

Posted by Bobby Jack on Stack Overflow See other posts from Stack Overflow or by Bobby Jack
Published on 2010-03-27T18:45:43Z Indexed on 2010/03/27 18:53 UTC
Read the original article Hit count: 316

Filed under:
|
|

Calling the jQuery focus() method on a link appears to only partially focus the link. Whilst the link has focus to the extent that pressing ENTER follows the link, it doesn't take on the default outline styling (or adopt any styling set via the :focus pseudo-class), nor is the tab-order correctly 'entered'.

Any ideas on how to resolve this?

(results observed in Firefox 3.6.2)

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about javascript-events