Javascript popup correct way
<p>Can anybody tell is this correct way of doing</p>

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

_spBodyOnLoadFunctionNames.push("popitup('Your popup URL')");

function popitup(url) {
    newwindow=window.open(url,'name','height=200,width=150');
    if (window.focus) {newwindow.focus()}
    return false;

}

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

<p>A function to open a popup</p>

<p>Thanks in advance</p>
