Forum Moderators: open

Message Too Old, No Replies

unnormal visited links behavior

         

andre73

2:53 pm on Dec 19, 2007 (gmt 0)

10+ Year Member



Hi,
I need to open links in a sized pop-up window. I do this with a javascript which opens this.href. All works great in Firefox but in IE6 the problem is that the links does not change to the visited color. Or to be more exact, the visited color is shown until I click somewhere else on the page containing the opening link. When the page is refreshed/reloaded however, the link appears with the correct visited color. Does anyone have a solution to make the links behave correctly in IE6?

Like I said the links work fine in Firefox but this problem appears in IE6, perhaps also IE7 I dont know. I work in an intranet environment where only IE6 is used, therefore I'm also unable to supply you with any links.

ChrisBolton

5:52 am on Dec 22, 2007 (gmt 0)

10+ Year Member



I think it's the same in IE7 too. It's just the way IE renders the page, I'm not sure there is anything you can do. Sorry.

ChrisBolton

5:55 am on Dec 22, 2007 (gmt 0)

10+ Year Member



Unless of course you make the original page refresh, but this will require a lot of unnecessary javascript. In my opinion, it would be better to live with it.

andre73

12:19 pm on Jan 9, 2008 (gmt 0)

10+ Year Member



If anyone else has this problem,here is the solution I settled for:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Test</title>
<script type="text/javascript">
function popup(target) {
window.open('', target, "width=500");
}
</script>
</head>
<body>
<a href="http://www.yahoo.com/" target="popup" onclick="popup(this.target);">Yahoo</a> ¦
<a href="http://www.google.com/" target="popup" onclick="popup(this.target);">Google</a> ¦
<a href="http://www.live.com/" target="popup" onclick="popup(this.target);">Live Search</a> ¦
<a href="http://www.altavista.com/" target="popup" onclick="popup(this.target);">Altavista</a> ¦
<a href="http://www.lycos.com/" target="popup" onclick="popup(this.target);">Lycos</a>
</body>
</html>