I program in php and I am new to javascript. I am trying to get a new window to open to show an image for a webstore but I keep getting runtime error in IE6. The runtime error is on the picwindow=window.open() line.
My code works fine in Mozilla. Thanks ahead of time for any help.Below is my code:
<!-*******BEGIN of JAVASCRIPT*******************-->
<script language = "Javascript">
var picwindow;
function openwin(url)
{
picwindow = window.open(url,"SofTek Software Webstore", "height=200,width=250,toolbar=no,resizable=yes,left=0,top=100,screenX=0,screenY=100");
picwindow.focus();
return false;
}
</script>
<!--***********END of JAVASCRIPT****************-->
<table width="100%" border="0" >
<tr align = center>
<td valign = top>
<A HREF =http://www.webdeveloper.com/forum/archive/index.php/"" onclick = "return openwin('../admin/imagelarge.php?itemid=da402');">
</td>
</tr>
</table>
My code works fine in Mozilla. Thanks ahead of time for any help.Below is my code:
<!-*******BEGIN of JAVASCRIPT*******************-->
<script language = "Javascript">
var picwindow;
function openwin(url)
{
picwindow = window.open(url,"SofTek Software Webstore", "height=200,width=250,toolbar=no,resizable=yes,left=0,top=100,screenX=0,screenY=100");
picwindow.focus();
return false;
}
</script>
<!--***********END of JAVASCRIPT****************-->
<table width="100%" border="0" >
<tr align = center>
<td valign = top>
<A HREF =http://www.webdeveloper.com/forum/archive/index.php/"" onclick = "return openwin('../admin/imagelarge.php?itemid=da402');">
</td>
</tr>
</table>