How to use modalDialog to display pop-up which can work in all browser
<p>I just tried to create pop-up window but its parent window get active while pop-up is still open , in Chome.
    My code is as blow</p>

<pre><code>&lt;script language="javascript" type="text/javascript"&gt;
    function showModalWindow() {
 window.showModalDialog('URL, "Sample.jpg", "resizable: yes");
    }
&lt;/script&gt;

how to make this code browser specific.
</code></pre>
