title: Error: Can't access property href
body: <p>I am using NODE JS module with which I am creating a HTTP server. Server's response is a page containing JavaScript which embed a webpage in . 
  Here is response code:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script type='text/javascript'&gt;
  function test() {
  document.body.innerHTML='&lt;iframe id="ifool" src="URL" sandbox="allow-same-origin allow-forms allow-scripts"&gt; &lt;/iframe&gt;';
  var c;                 
  window.setInterval(function(){
  c=document.getElementById("ifool").contentWindow.location.href; 
  window.history.pushState(0,0,c);  
  },100);
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body onload= "test()"&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I am using Firebug with FF.I am getting following error:
  <br/> </p>
  
  <pre><code> Error: Permission denied to access property 'href'
      c=document.getElementById("ifool").contentWindow.location.href;
  </code></pre>