title: Check if a popup window is already open before opening it using Jquery
body: <p>I want to check if a popup window is already open , before I open the popup window.
  How do I get it done using Jquery?</p>
  
  <p>Below is my code to open a new popup window :</p>
  
  <pre><code>window.open("mystopchat.php?stat=1&amp;session="+data['myid1']['session_id'][i],"win1","width=500,height=500"); 
  </code></pre>
  
  <p>Now before I call this, I want to be sure that this popup window is not already open.</p>