title: Code to increase the iframe height not working in Google Chrome
body: <p>I have used the following code to increase the <code>iframe</code> height. This code working fine in Mozilla and IE, but not in Google Chrome.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function calcHeight()
  {
      the_height = document.getElementById('the_iframe').contentWindow.document.body.scrollHeight;
      document.getElementById('the_iframe').height = the_height + 35;
  }
  &lt;/script&gt;    
  
  &lt;iframe src="indexframe.html" id="the_iframe" onLoad="calcHeight();" name="home_frame" width="100%" frameborder="0" &gt;&lt;/iframe&gt;
  </code></pre>