Solved

Dashed border in IE

Posted on 2000-03-06
7
450 Views
Last Modified: 2012-08-13
How do I remove the dashed border of an anchor tag in IE.

<a href="xyz"><img src="xyz"></a>

When clicking on the image, IE will make a dashed border around the image. NS doesn't do this.

Regards
0
Comment
Question by:KE
7 Comments
 
LVL 6

Expert Comment

by:andreif
ID: 2588553
Is it possible? I think, that no... I know only about solid border around image, which can be deleted using <img src=... border=0> attribute.
0
 
LVL 3

Author Comment

by:KE
ID: 2589163
I was thinking on some of the style properties. I hope it's possible - the reloading trick is kind of overkill...

Regards
0
 
LVL 8

Expert Comment

by:jbirk
ID: 2590323
That border thing is one of my major dislikes of IE...  why did they ever put that "feature" in in the first place?

Sorry, I don't know of any way to get rid of it nicely...

-Josh
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Expert Comment

by:drom
ID: 2590847
Remove the focus from image is the only way, AFAIK. So it will require script work on onClick or onFocus (whatever you and DOM like more)

Regards, Dmitry

focus border disappears after mouse release:
<a onClick="blur();" href="xyz"><img src="xyz"></a>

focus border will not appear at all:
<a onFocus="blur();" href="xyz"><img src="xyz"></a>
0
 
LVL 3

Author Comment

by:KE
ID: 2591199
I've tryed your solution, but unfortunately it has some nasty sideeffects.

1. The browser window will loose it's focus and will be covered by all other opened applications.

2. It's also hard to get the browser to follow a link, since the focus is removed before it get's a chance continue (this actually stall's the link).

It seems that the blur() function only operates on Form controls and the window itself. Do you have another suggestion, than blur() ?

Regards
0
 
LVL 1

Accepted Solution

by:
drom earned 50 total points
ID: 2591308
sure, the only thing you need is make the focus out of your images: use

<a onClick="window.focus();" href="xyz"><img src="xyz"></a>

instead of blur(); ... but would you mind to say what IE/OS are you using? I can't repeat this problem you mentioned. Both of them :(
0
 
LVL 3

Author Comment

by:KE
ID: 2593899
That's it !

I'm using IE5 on NT4 SP5.

Regards
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now