Click to See Complete Forum and Search --> : what 's wrong with my code?


tripwater
03-11-2003, 04:25 PM
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 ="" onclick = "return openwin('../admin/imagelarge.php?itemid=da402');">
</td>
</tr>
</table>

khalidali63
03-11-2003, 04:30 PM
get rid of the spaces from the name
"SofTek Software Webstore"
should be like this
"SofTekSoftwareWebstore"

Cheers

Khalid

tripwater
03-11-2003, 04:32 PM
Thank you khalidali63 that did it.