replacing div content with javascript
<p>I'm trying to do this with pure javascript, not with jquery. I have a div that has an id <code>test</code> and contains other divs inside it. How do I empty the content of this div and replace it with other html?</p>

<pre><code>&lt;div id="test"&gt;
   &lt;div&gt;...&lt;/div&gt;
   &lt;div&gt;...&lt;/div&gt;
   &lt;div&gt;...&lt;/div&gt;
&lt;/div&gt;
</code></pre>
