title: Iframe resize not working during second load in Mozilla Firefox
body: <p>IFrame is designed to be resized according to its content and it works on most browser but only in <strong>Mozilla Firefox</strong>, ONLY the first load is working but loading event afterwards is not working.</p>
  
  <p>To let it works again, need to <em>refresh the page</em> or either <em>clear the cache of the browser</em> first..</p>
  
  <p>The code is as below:</p>
  
  <pre><code>function sizeIFrame() {
  var subscriptionFrame = jQuery("#subscriptionFrame");
  var innerDoc = (subscriptionFrame.get(0).contentDocument) ?subscriptionFrame.get(0).contentDocument : subscriptionFrame.get(0).contentWindow.document;
  subscriptionFrame.height(innerDoc.body.scrollHeight);   }
  
  &lt;iframe id="subscriptionFrame" onload="sizeIFrame();"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>Anyone have idea about this?</p>