Wildcat
09-13-2003, 07:13 PM
I need to design part of my site to display in a pop-up window (a comic) because my site is in frames and I feel it would be nicer for the user to see the whole comic rather than having to scroll down because of my frames. Here's my script:
<script language="JavaScript"><!--
function seeComic(URL) {
comicWindow = window.open(URL, "Shooting Stars", "toolbar=no,width=600,height=600,status=no,scrollbars=yes,resize=no,menubar=no");
}
--></script>
And in the body,
<a href="#" onClick="javascript:seeComic('comic/page1.html');">1,</a>
This script works perfectly in NN and Opera. I had to make the href a # because IE kept going to a blank page with [object] in it when I just used window.open(). But IE gives me this error message when I try to pass the URL to the script:
Line 11
Char 2
Error: Invalid arguement
I can't see any flaws in the script (I found it in Web Design in a Nutshell, my class textbook), or any reason it shouldn't work. Is there a way to code around this without all a whole bunch of if statements to write something different just for IE?
Thanks.
<script language="JavaScript"><!--
function seeComic(URL) {
comicWindow = window.open(URL, "Shooting Stars", "toolbar=no,width=600,height=600,status=no,scrollbars=yes,resize=no,menubar=no");
}
--></script>
And in the body,
<a href="#" onClick="javascript:seeComic('comic/page1.html');">1,</a>
This script works perfectly in NN and Opera. I had to make the href a # because IE kept going to a blank page with [object] in it when I just used window.open(). But IE gives me this error message when I try to pass the URL to the script:
Line 11
Char 2
Error: Invalid arguement
I can't see any flaws in the script (I found it in Web Design in a Nutshell, my class textbook), or any reason it shouldn't work. Is there a way to code around this without all a whole bunch of if statements to write something different just for IE?
Thanks.