most elegant way to create a javascript popup?
<p>Is there a more elegant way of creating a JavaScript popup?</p>

<pre><code>&lt;head&gt;
&lt;script&gt;
function myPopup() { window.open( "http://www.google.com", "myWindow", "status=1, height=300, width=300, resizable=0" )
}
&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;input type="button" onClick="myPopup()" value="popup"&gt;
&lt;/body&gt;
</code></pre>
