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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

set onfocus="blur()" to all links an a page

Status
Not open for further replies.

Boomerang

Programmer
Mar 30, 2001
766
NL
To avoid the "dotted border" around a link after a click you can add onfocus="blur()" to the link like:

<a onfocus=&quot;blur()&quot; href=&quot;.............

In the javascript forum I answered how to set this to all the links in a page:

see thread216-280916

Please let me know if you see any disadvantage about it,

Erik <!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
For those how are interested:

I added an extra example to the post Thread216-280916

Erik

<!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
I have used this JavaScript though a Dreamweaver extension.

When I check my HTML in NetMechanic, I get warnings on this script to the effect of:

Warning: <a> proprietary attribute &quot;onfocus&quot;.

I have no idea what that means..but it tends to be followed with: NOTE: &quot;onfocus&quot; with <a> is compatible with all selected browsers.

What does this warning mean?

 
I don't know? I don't use Dreamweaver.

Anyone else?

Erik <!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
Hi guys,

I dont use dreamweaver either but I have used netmechanic.

Netmechanic checks your code for cross browser compatibility and will return errors depending on the code used.

&quot;onfocus&quot; with <a> is compatible with all selected browsers

This just means that the browsers selected in the compatibility section of the tests that have more than a certain percentage are all compatible with this function but others are not.

Hope this helps Wullie

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top