title: set innerHTML of an iframe
body: <p>In javascript, how can I set the innerHTML of an iframe? I mean: how to set, not <a href="https://stackoverflow.com/questions/139118/javascript-iframe-innerhtml">get</a>.</p>
  
  <p><code>window["ifrm_name"].document.innerHTML= "&lt;h1&gt;Hi&lt;/h1&gt;"</code> does not work, and the same for other solutions.</p>
  
  <p>Iframe and parent document are on the same domain.</p>
  
  <p>I would need to set html of the whole document iframe, not its body.</p>
  
  <p>I would need to avoid jquery solution.</p>