Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Mar 2006
    Location
    I'm lost, livin inside myself
    Posts
    97
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Internet Explorer Invalid argument

    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.
    Code:
    <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
    Last edited by The Reverend; 06-29-2006 at 08:22 AM.

  • #2
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,680
    Thanks
    0
    Thanked 230 Times in 225 Posts
    Hi there The Reverend,

    IE does not like the white space here...
    Code:
    
    window.open("http://www.ninercaphell.com/subvid.php", " ", "height=250,width=300");
    
    ...close up the quotes thus...
    Code:
    
    window.open("http://www.ninercaphell.com/subvid.php", "", "height=250,width=300");
    
    ...and it will be OK.

    coothead

  • #3
    New Coder
    Join Date
    Mar 2006
    Location
    I'm lost, livin inside myself
    Posts
    97
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Worked, thanks

  • #4
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,680
    Thanks
    0
    Thanked 230 Times in 225 Posts
    No problem, you're welcome.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •