title: Filling an IFRAME with dynamic content from JavaScript
body: <p>I have an IFRAME that should be filled with content from JavaScript. Had the content be on the server all I had to do is:</p>
  
  <pre><code>    function onIFrameFill() {
           myIframe.location.href = "HelloWorld.html";
       }
  </code></pre>
  
  <p>But the content I have is a HTML page generated on the client and represented as a string (I have not much influence on it). How can I populate the content of the my iframe programatically?   </p>