window.open error on IE?
<p>I'm seeing "Invalid Argument" in Internet Explorer with window.open using javascript. How will I fix it?</p>

<p>I'm getting "Invalid Argument" in line "var newwindow = window.open (url, 'Popup Demo', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);".</p>

<p>Here's my code:</p>

<pre><code>&lt;script type="text/javascript" language="javascript"&gt;
&lt;!--

function popitup(url) {

    var w = 500;
    var h = 500;

    var left = (screen.width/2)-(w/2);
    var top = (screen.height/2)-(h/2);

    var newwindow = window.open (url, 'Popup Demo', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);

    if (window.focus) {
        newwindow.focus();
    }
    return false;
}

// --&gt;
&lt;/script&gt;
</code></pre>
