View Full Version : Invalid argument

The Reverend
06-29-2006, 09:15 AM
I'm really new to javascript, so this I'm having trouble even with simple things.

In FF this works fine. But in IE I get a message that this is an invalid argument, line 19. The first line here is 19.

<script type="text/javascript">
var newWindow;
function makeNewWindow() {
newWindow = window.open("http://www.ninercaphell.com/subvid.php", " ", "height=250,width=300");

The other part of the page has a button that onclick calls this function. Is this a syntax problem? I'm pretty confused.

here's the page it's on...


06-29-2006, 09:25 AM
Hi there The Reverend,

IE does not like the white space here...

window.open("http://www.ninercaphell.com/subvid.php", " ", "height=250,width=300");

...close up the quotes thus...

window.open("http://www.ninercaphell.com/subvid.php", "", "height=250,width=300");

...and it will be OK. ;)


The Reverend
06-29-2006, 09:31 AM
Worked, thanks

06-29-2006, 09:35 AM
No problem, you're welcome. :)