How to create HTML elements dynamically in a popup window?
<p>Previously,I used the window.showModalDialog() function to popup a window:</p>

<pre><code>window.showModalDialog("myHtml")
</code></pre>

<p>In myHtml,there are some html elements,like the textarea and two buttons.
But now the situation changed,any html file is not allowed.So I have to create the html elements dynamically in the popup window.Is it possible?</p>
