Forum Moderators: open
Has anyone used a javascript link to open a new window? I keep getting javascript errors when I try to open a new window so I thought I'd be smart and add it to my flash movie instead, but I'm getting the same error.
Here's my actionscript code:
on (release) {
var LINK;
getURL("javascript:window.open('"+LINK+"','Order Form','resizable=no,scrollbars=yes,toolbar=no,status=no,location=no,width=800,height=500');");
}
The LINK is fed dynamically into the flash movie and that seems to be working, but the error I get (Using flash or not) is:
"Invalid Arguement"
This is frustrating because I only get the error on a Windows machine, never on a mac. Firefox and IE6 both give me the error, but Safari and Firefox for the Mac both work fine.
Any ideas?
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14192 [macromedia.com]
I had to change all of my links to <a href="something.php?resize=yes" target="WindowName" onClick="newwindow('something.php')">
That makes the Windows browsers work with no errors and still allows the Mac browsers to get the correct javascript method.
I hate that I have to create extra code for some browsers, but the window.open method just didn't work for me. I thought that using Flash would help to skip the problems that Windows was throwing me, but it ended up being a Javascript problem.
Thanks for the help.