Posts: 8,936
Name: Tim Daily
Location: Apex, NC, US, Sol 3
|
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">
<!-- 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>
Each of my image links has a variation of this (and they're each enclosed in a td tag if that makes a difference)
<a href="javascript:newWindow('concept1.jpg')">
Thanks to anyone who can help.
|