title: Permission denied to access property 'document'
body: <p>I am using following script there, form this script on my page add iframe and I want to get iframe html.</p>
  
  <pre><code>&lt;script src="http://ads.sonobi.com/ttj?id=881134" type="text/javascript"&gt;&lt;/script&gt; 
  </code></pre>
  
  <p>Problem is in iframe there is inner iframe.</p>
  
  <p>Javascript following function using for get content of ifrmae</p>
  
  <pre><code>document.getElementById('f1').contentWindow.document.body.innerHTML 
  </code></pre>
  
  <p>When I run this will show following error</p>
  
  <pre><code>Permission denied to access property 'document'
  </code></pre>
  
  <p>How to solve the problem of permission denied.</p>