title: Render an iFrame dynamically in Firefox
body: <p>I generate an iFrame dynamically like this</p>
  
  <pre><code>var iframe=document.createElement('iframe');
  document.body.appendChild(iframe);
  var iframedoc=iframe.contentDocument||iframe.contentWindow.document;
  iframedoc.body.innerHTML="HI";
  </code></pre>
  
  <p>Fiddle: <a href="http://jsfiddle.net/Pbj7S/" rel="nofollow">http://jsfiddle.net/Pbj7S/</a></p>
  
  <p>It works in Google Chrome, Opera, Safari, but not in Firefox.</p>
  
  <p>Any idea why?</p>