justuptime.com - monitor your servers & websites

IE bug-open new window

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

They have: 11 posts

Joined: Dec 2006

I've got image links on my site, and Internet Explorer won't open them. If I try to right-click open in new window, IE says it can't open the page. My pages are W3C valid, and all other browsers have no problem with the following coding. Help with a workaround?

This is what's in my head section:
<script language="JavaScript" type="text/javascript">

</script>

Each of my image links has a variation of this (and they're each enclosed in a td tag if that makes a difference)

Thanks to anyone who can help.

timjpriebe's picture
DeveloperModeratorSponsor

He has: 2,666 posts

Joined: Dec 2004

You do need to have a semicolon at the end of each line. Like this:

&lt;script language="JavaScript" type="text/javascript"&gt;
<!-- Hide script from old browsers

function newWindow(imgjpg) {
imgName = "../images/cabinets/" + imgjpg;
winName = imgjpg + "Win";
imgWindow = window.open(imgName,winName);
imgWindow.focus();
}

// End hiding script from old browsers -->
&lt;/script&gt;

'