Checking if popup window is already open while browsing another page
<p>How to check that popup is already opened?</p>

<pre><code>var popup = null;
$('#menu').bind('click', function(e) {
    if (popup == null || popup.closed )
        popup = window.open (...);
});
</code></pre>

<p>The above JQuery code works when in the same page. When the user browse to another page with, still with element <code>#menu</code>, popup variable will be <code>null</code>. Any idea on this?</p>

<p>When a popup is aleady opened, I don't want the same popup to open.</p>

<p>How to check if a window with a given name already opened?</p>

<p>Thanks</p>
