title: iFrame height adjust with jQuery
body: <p>I would like to auto-adjust the height of my iframe to the content that's in it. I've done this with a jQuery plugin, jquery-iframe-auto-height by house9, which works really well.</p>
  
  <p>Now I want for my homepage (in the iframe) to have the full height of the parent page. I figured I should use an if else statement, but since I'm not that experienced with javascript (yet), I hope one of you could help me.</p>
  
  <pre><code>$(document).ready(function () {
      if ((#ifrm).($this).attr('src') == 'home.html'){
          $('#ifrm').iframeAutoHeight({minHeight: 100%});
      }
      else $('#ifrm').iframeAutoHeight({minHeight: 300});
  });
  </code></pre>
  
  <p>Also I found this one code for getting the full height of the page, maybe it helps</p>
  
  <pre><code>if ($('#ifrm').($this).attr('src') == 'home.html'){
      (function(){var height = $(window).height();
           $('#ifrm').css('height', height)
      });
      }
      else $('#ifrm').iframeAutoHeight({minHeight: 300, debug: true});
  </code></pre>
  
  <p>Thank you so much in advance</p>
  
  <p>Edit: you can find the website this was for <a href="http://djwithoutwings.com" rel="nofollow">here</a></p>