free hosting   image hosting   hosting reseller   online album   e-shop   famous people 
Free Website Templates
Free Installer

Graphic Link
Outline Eliminator


This script gets rid of IE's dotted outline around a graphic link when it's clicked.

For example, click on the link button below:
See how IE puts a nasty dotted border around the image?

Now try it with the second button:
See ... no outline!


Here's the script that solves the problem:

How It Works

Whenever the link button is clicked, it gains focus.

Hence the dotted outline appears.

The outline will only disappear when the graphic loses focus.


With this script, the onFocus command does just that.

As soon as the graphic gains focus, it is immediately blurred:
<a href="someurl" onFocus="this.blur()">

Short and simple, but 100% effective!



© 2001 CyberSchool