Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS :hover in IE

Status
Not open for further replies.

drs9222

Programmer
May 15, 2001
41
US
I know that it only works with A tags. Does anyone know how to get rid of the little dotted border when it gets focus. Having to use links wouldn't be so bad if I could get rid of that last little thing.
 
The way to do this is to blur the link. Let's say you have a link and you don't want it to select. So...
Code:
<a href="thesite.html" [red]onClick="[i]window.document.links[0].blur()[/i]">Link!</a>[/red]
would deselect the link after it has been clicked.
 

I'd try using this.blur, to save having to increment the number for large copy/paste operations:

Code:
<a href="thesite.html" onClick="this.blur();">Link!</a>

You might find, however, that in some browsers, you need to assign a tabIndex to the A tags to get the blur to work.

Hope this helps,
Dan
 
oh sorry I was hoping for a pure css solution. But thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top