I'm struggling to remove the unattractive grey border that surrounds anchor tags. The CSS property outline:none;
eliminates it in Firefox, but how can I achieve the same effect in IE? Ideally using CSS expressions or jQuery. Accessibility is not a concern for me.
After considering your advice, I have identified the following as optimal solutions:
The recommended jQuery approach (for IE browsers):
$('a').focus(function() { $(this).blur(); });
An alternate jQuery method (specifically for IE browsers):
$('a').focus(function() { $(this).attr("hideFocus", "hidefocus"); });
A CSS solution (for all other browsers with enforced outlines):
a { outline: none; }
Please note that some browsers, like Google Chrome, do not apply an outline upon focus.