Click to See Complete Forum and Search --> : Getting rid of link outlines around images in IE


bunner bob
12-30-2002, 03:06 PM
I've forgotten how to do this - getting rid of those annoying outlines that show up in Internet Explorer when a button's been clicked on. It's NOT the border attribute. I think there's a bit of Javascript that does this disabling, but it's slipped out of my brain...

Anyone remember?

Da Warriah
12-30-2002, 03:12 PM
here:

<a href=http://www.hairclub.com
onFocus="if(this.blur)this.blur()">Hair Club for Men</a>

that should do the trick;) courtesy of HTMLGoodies.com:)

bunner bob
12-30-2002, 03:23 PM
Ahh - that did it nicely. Thanks.

jeffmott
12-30-2002, 03:25 PM
bunner bob
that show up in Internet Explorer

Just to clarify, it is Windows that does this-- not IE. They can just as easily show up in other browsers as well. As of XP (and probably 2k also) each user can display them or not according to their own preference. You might also consider respecting their preferences. :)

Da Warriah
onFocus="if(this.blur)this.blur()"

Why the conditional?

<a href="http://www.w3.org/" onfocus="this.blur()">W3C</a>

bunner bob
12-30-2002, 03:47 PM
Actually it's IE as well. IE on Mac OS X at least. And Netscape OS X doesn't do it.

Actually, maybe IE could respect MY preferences. If I wanted a border around an image I'd specify it. Let me design bad navigation if that's what it is.

Actually, since the outline only appears when the image is clicked on or has already been clicked on, it's not really an aid to navigation as, say, an always-on border or mouse-over border would be. So I'm not sure what the point of this "feature" is.

Charles
12-30-2002, 04:22 PM
It's an accessibility feature for people who are not using a mouse. A sighted user without hands who might be using a head wand to tab through the links needs to be able to see which link is in focus. There are good reasons to respect the needs of your users and to leave their browser settings alone. However, web author's do so many offensive things with JavaScript that it may be a fair assumption that a person tabbing through the links has disabled scripting.

bunner bob
12-30-2002, 04:40 PM
I see - that makes sense.

Still, it would be nice if the feature shipped in the "off" position, with perhaps an easily accessed "accessibility" button to turn it on when the user was installing or first configuring their browser.

And in my particular case, accessibility won't be an issue.