sheldongold
07-20-2005, 11:22 AM
Hi,
I am having real trouble getting pop up windows to work with IE. I have tried 3 different methods (all from this site) that work perfectly with Firefox but just don't work at all in IE and simply kick up an error pointing to an 'Invalid Argument' at the line with window.open in it. :mad:
You can see it for yourself at www.artuntitled.co.uk but here's the code I'm using:
on the button in the flash file (index.swf):
on (release) {
getURL ("Javascript:popupwindow(1)");
}
in between the <head> tags in the html file (index.html):
<script language="javascript">
function popupwindow(index)
{
if(index==1)
{
site="main.html"
}
window.open(site,"Oliver Twitchett","toolbar=0,location=0,directories=0,status=0,menuba r=0,scrollbars=0,resizeable=0,width=800,height=600")
}
</script>
Any help will be greatly appreciated!
Thanks in advance
Sheldon
I am having real trouble getting pop up windows to work with IE. I have tried 3 different methods (all from this site) that work perfectly with Firefox but just don't work at all in IE and simply kick up an error pointing to an 'Invalid Argument' at the line with window.open in it. :mad:
You can see it for yourself at www.artuntitled.co.uk but here's the code I'm using:
on the button in the flash file (index.swf):
on (release) {
getURL ("Javascript:popupwindow(1)");
}
in between the <head> tags in the html file (index.html):
<script language="javascript">
function popupwindow(index)
{
if(index==1)
{
site="main.html"
}
window.open(site,"Oliver Twitchett","toolbar=0,location=0,directories=0,status=0,menuba r=0,scrollbars=0,resizeable=0,width=800,height=600")
}
</script>
Any help will be greatly appreciated!
Thanks in advance
Sheldon