HTML in a new window
<p>I want to open a new window (or tab), and put html code in it. How can I do that?</p>

<p>Something like:</p>

<pre><code>window.open("","foo");
foo.body="alert('HI')';";
</code></pre>
