title: Write elements into a child iframe using Javascript or jQuery
body: <p>I have something like this:</p>
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
    &lt;body&gt;
       &lt;iframe id=&quot;someFrame&quot;&gt;&lt;/iframe&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>And I would like to use jQuery to write elements such that the full equivalent HTML would be like this:</p>
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
    &lt;body&gt;
      &lt;iframe id=&quot;someFrame&quot;&gt;
        &lt;!-- inside the iframe's content --&gt;
        &lt;!-- &lt;html&gt;&lt;body&gt;  --&gt;
        &lt;div&gt;A&lt;/div&gt;
        &lt;div&gt;B&lt;/div&gt;
        &lt;div&gt;C&lt;/div&gt;
        &lt;!-- &lt;/body&gt;&lt;/html&gt; --&gt;
      &lt;/iframe&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>Alternatively, any plain-old-Javascript would be fine.</p>
  <p>Thanks.</p>
  <p><strong>Edit</strong>:  After a little more research, it seems I am looking for an IE-equivalent of the contentDocument property of an iframe.  &quot;contentDocument&quot; is a W3C standard which FF supports, but IE does not. (surprise surprise)</p>