title: How to check window.open() opening same page twice
body: <p>I want to open a page with javascript window.open() and i want to check if that page is opened in a window before just bring it to front and if that page not opened before open it with a new window.</p>
  
  <p>I am making a music player and i want to add it to pages in my site. when a user click "open player" button it will open the player popup window. but it was opened by the user before when button clicked it would be bring that opened window rather than opening a new window. </p>
  
  <p>Any javascript or jquery solutions are there?</p>
  
  <p>This is the function i using to open new window.</p>
  
  <pre><code>function popUp() {
          window.open("popup_player.php", "_blank", "toolbar=yes,scrollbars=yes,resizable=yes,top=500,left=500,width=400,height=400",true);
      }
  </code></pre>