...

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");
}
</script>


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...

http://www.ninercaphell.com/video.php

coothead
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. ;)

coothead

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

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum