title: Resize iframe height according to content height in it
body: <p>I am opening my blog page in my website. The problem is I can give a width to an iframe but the height should be dynamic so that there is no scrollbar in the iframe, and it looks like a single page...</p>
  
  <p>I have tried various JavaScript code to calculate the height of the content but all of them give an <em>access denied permission</em> error and is of no use.</p>
  
  <pre><code>&lt;iframe src="http://bagtheplanet.blogspot.com/" name="ifrm" id="ifrm" width="1024px" &gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>Can we use Ajax to calculate height or maybe using PHP?</p>