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

Remove Border after pic is clicked

Status
Not open for further replies.

saw15

Technical User
Jan 24, 2001
468
US
Working with standard html, I have created a main page with links to different sites using pics. A user will click on a pic to get to the desired site, issue is when the user clicks back and is taken to the main page, the clicked link image has a border around it.

Can I remove this border and have main page appear as though it has been refreshed or never visited?

Any help is appreciated.
 
By border do you mean a solid 2-3px wide border or the dotted one that goes around clicked links? If it's the first, you can just add:
border="1"
to the image. Otherwise, try this:
<a href=&quot;...&quot; onClick=&quot;this.style.border=0;&quot;><img></a>

Rick
 
Actually I have a blk background, when the page first comes up you don't see anything around any pics. But after you click the pic and come back, its got a ring or border (but not border as in property.

As an example, if you go to msn.com and click on the Office Party blunders picture, you get redirected, and if you click back you go back to msn and you can see a border now around the pic you clicked.

I am trying to remove this border. Hope that was somewhat clear.

 
I don't understand why it disturbs you. Also, it happens in IE and Mozilla and doesn't appear in other browsers.
Anyway, you can use this:
<a href=... onFocus=&quot;this.blur()&quot;>
 
Thanks starway, will give it a whirl.

btw, doesnt' bother me, but friend I am doing it for.
 
starway, worked perfect.


thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top