a innerHTML alternative for a dom node
<pre><code>var ele = iframe_container[i];
var iframe_element = document.createElement("IFRAME");
</code></pre>

<p>How do I make <code>iframe_element</code> the only child of <code>ele</code>?.</p>

<p>I have tried <code>appendChild</code> and <code>replaceChild</code> but both are for a different purpose. What is the right way to do?.</p>
