title: Resizing div after iframe change src
body: <p>So I automatically resize my iframe based on content height as follows: </p>
  
  <pre><code>&lt;iframe name="main" id="main" src="main.php" frameborder=0 scrolling="no" onload="this.style.height = main.document.body.scrollHeight + 5; this.style.width = main.document.body.scrollWidth"&gt;
  </code></pre>
  
  <p>However, I also use a link to change the src (utilizing target if anyone was wondering), but my iframes vary heights vastly, and after changing back to the shorter one, my methods of resizing the div/document body haven't worked...</p>
  
  <p>ex.</p>
  
  <pre><code>&lt;a href="mail.php" onclick="document.getElementById("content").style.height = main.document.body.scrollHeight" target="main"&gt;
  </code></pre>
  
  <p>Any suggestions?</p>