title: How to insert html in iframe
body: <p>Hallo all: I need to insert a html string in a iframe as shown below:</p>
  
  <p>....</p>
  
  <pre><code>var html = "&lt;html&gt;&lt;head&gt;&lt;title&gt;Titolo&lt;/title&gt;&lt;/head&gt;&lt;body&gt;&lt;p&gt;body&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;"
  
  jQuery('#popolaIframe').click(function() {
    parent.$("#indexIframe")[0].documentElement.innerHTML = html;     
  }); 
  </code></pre>
  
  <p>Is there a way to achieve this?</p>