Create an iframe on button click with jquery?
<p>i have the following code</p>

<pre><code>var url = "url";
$('&lt;iframe /&gt;', {
    name: 'frame',
    id:   'frame',
    src: url
}).appendTo('body');    
</code></pre>

<p>but when i click the button, nothing seems to happen</p>
