D
danielmcbrearty
Hi
Can anyone tell me why the following javascript code doesn't work with
IE6? (It's fine with Firefox of course ...)
(in teh document head)
<script type="text/javascript" language="javascript1.2">
<!--
function smallpopup(purl)
{
var newwindow=window.open(purl,'engoi.com',
'left=500,top=100,width=550,height=350,scrollbars=1,toolbar=1');
if (window.focus) {newwindow.focus();}
return false;
}
function largepopup(purl)
{
var newwindow=window.open(purl,'engoi.com',
'left=500,top=100,width=550,height=500,scrollbars=1,toolbar=1');
if (window.focus) {newwindow.focus();}
return false;
}
-->
</script>
..
..
..
(in the document body)
<a href="../somedir/myscript.cgi?lang=en"
onClick="return smallpopup('../somedir/myscript.cgi?lang=en')">do it!
</a>
The doc loads with no errors, but when the link is clicked, IE6
complains that the arg to the function is improper, and loads in a
normal window.
If anyone can help, that's great!
Thanks
Daniel
Can anyone tell me why the following javascript code doesn't work with
IE6? (It's fine with Firefox of course ...)
(in teh document head)
<script type="text/javascript" language="javascript1.2">
<!--
function smallpopup(purl)
{
var newwindow=window.open(purl,'engoi.com',
'left=500,top=100,width=550,height=350,scrollbars=1,toolbar=1');
if (window.focus) {newwindow.focus();}
return false;
}
function largepopup(purl)
{
var newwindow=window.open(purl,'engoi.com',
'left=500,top=100,width=550,height=500,scrollbars=1,toolbar=1');
if (window.focus) {newwindow.focus();}
return false;
}
-->
</script>
..
..
..
(in the document body)
<a href="../somedir/myscript.cgi?lang=en"
onClick="return smallpopup('../somedir/myscript.cgi?lang=en')">do it!
</a>
The doc loads with no errors, but when the link is clicked, IE6
complains that the arg to the function is improper, and loads in a
normal window.
If anyone can help, that's great!
Thanks
Daniel