Forum Moderators: open

Message Too Old, No Replies

IE6, IE7: Visited links to popped up window don't retain color

         

roadsider

1:44 pm on Aug 9, 2007 (gmt 0)

10+ Year Member



I don't know if this is a IE issue or a javascript issue. I have links coded to pop up a window to an external site. I can't use target="_blank" because the windows need to be a certain size.

After the user clicks the link, sees the new window, and returns to the site, the link shows its a:visited color. But as soon as they click anywhere on the page, the link reverts to its default unvisited color. It changes to its a:visited color after the user navigates to another page within the site or if he refreshes the page.

Links without javascript change, of course, but that's because the user goes to that other page in the site.

Here is the code:

<a href="http://www.example.org/" onclick="MM_openBrWindow('http://www.example.org/','pagename',
'toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,
resizable=yes,width=800,height=600'); return false;">link</a>

Naturally, this problem does not happen with FF on Mac or PC. ;-)

Can I insert more code into the onclick to refresh the originating page? Is there something else I can do? Thanks.

[edited by: encyclo at 7:58 pm (utc) on Aug. 11, 2007]
[edit reason] added line breaks to fix side-scroll [/edit]

BlobFisk

1:17 pm on Aug 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do you have any CSS that is adding a style to the links?

penders

1:59 pm on Aug 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Do you specifically set an unvisited colour in your CSS? ie. a:link?