location.href doesn't work locally on machine?
<p>Forget iframes and cross site scripting and all sorts, none of those issues are related to my specific problem.</p>

<p>The problem is in internet explorer (the code works FINE in firefox and similar). Running on a Windows 7 Machine.</p>

<p>Any code like:</p>

<pre><code>window.location.href = "http://google.com";
document.assign("http://google.com");
</code></pre>

<p>Even when the location is a html doc in the current directory (eg: <code>....href = "nextpage.html"</code>) it won't allow it.</p>

<p>The error is "permission denied" or sometimes "access denied".</p>

<p>Any reasons why this is happening? Are there any alternatives?</p>

<p><strong>context</strong> - this is a local html file to be run in a web view in a C# program, so its using IE's engine which is why there is such an issue.</p>

<p>Thanks</p>
