"Access is Denied" error in javascript
<p>I am using window.open(0 method to open a new popup window. It's showing javascript error "Access Denied". My code is below:</p>

<p><strong>Script Code:</strong></p>

<pre><code>function wopen(url, name, w, h)
{
    var win = window.open(url,
                  name, 
                  'width=' + w + ', height=' + h + ', ' +
                  'location=no, menubar=no, ' +
                  'status=no, toolbar=no, scrollbars=no, resizable=no');
    win.resizeTo(w, h); 
    win.focus();       
}
</code></pre>

<p><strong>HTML Code:</strong></p>

<pre><code>&lt;a href="&lt;%=link("*","PopupDisplay")%&gt;" target="popup" 
    onClick="wopen('&lt;%=link("*","PopupDisplay")%&gt;', 'popup', 450,200); return false;" 
    id ="CommerceQuery_fourpartlink"4 Part Key#&lt;/a&gt;

// "PopupDisplay" will forward to the corresponding link
</code></pre>
