SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member rubyrock81's Avatar
    Join Date
    Mar 2008
    Location
    Seattle area
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Invalid argument with window.open method in IE7

    IE7's debugger says there's an invalid argument with my window.open. Does anyone know a fix for this???

    function sizeChartM() {
    window.open("sizechartM.html", "Men's size chart", "toolbar=no,menubar=no,scrollbars=no,resizable=no,width=400,height=300,top=100,left=700");
    }

    It's being called in the onclick event of an <a>, and it works in Firefox and Safari, but IE7 is being difficult...

    Thank You!!!

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,600
    Mentioned
    24 Post(s)
    Tagged
    1 Thread(s)
    Get rid of the spaces and quote out of the window name.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  3. #3
    SitePoint Member rubyrock81's Avatar
    Join Date
    Mar 2008
    Location
    Seattle area
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Silly me, thank you!


Bookmarks

Posting Permissions

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