IE bug-open new window
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 posted this at 13:11 — 6th December 2006.
He has: 2,667 posts
Joined: Dec 2004
You do need to have a semicolon at the end of each line. Like this:
<script language="JavaScript" type="text/javascript">
<!-- 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 -->
</script>
Tim
http://www.tandswebdesign.com
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.