Access denied error on window.moveTo()
<p>I have a window that is composed of a frameset. When I launch it, I have to
resize it, thus:</p>

<pre><code>&lt;script language="javascript"&gt; window.onload = function(){window.moveTo(0,0);  window.resizeTo(400,500); }&lt;/script&gt;
</code></pre>

<p>but then when I ran it in IE 8, it gives me the "Access denied" error in the 
window.moveTo() code. </p>

<p>I also tried using it as:</p>

<pre><code>&lt;body onLoad="moveWindow(this);"&gt;&lt;script language="javascript"&gt; function move(obj){   obj.moveTo(0,0);obj.resizeTo(400,500);  } 
</code></pre>

<p></p>

<p>but still gives me the error. </p>

<p>Can somebody help?</p>
