IE bug-open new window

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

He has: 2,667 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;
'

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.