title: Opening only one instance of url using window.open
body: <p>I am working on an asp.net web page which has a hyperlink. when ever that hyperlink is clicked, a new browser window is opened using javascript <code>window.open</code>. I want that If user clicks this link multiple times, then only one window is opened and not multiple windows. I just want that window to be highlighted when user clicks that hyperlink multiple times. Do I need to use <code>window.open</code> to detect if the url is opened in any other tab of the  browser ? Is there any jQuery plugin built in for this so that I can use it  for browser compatibility.</p>
  
  <p>Here is the hyperlink url:</p>
  
  <pre><code>&lt;a onclick="addClick()" href="javascript:void(0)"&gt;
                      New&lt;/a&gt;
  </code></pre>
  
  <p>and here is the code I am using:</p>
  
  <pre><code>function addClick() {
      var ID = jQuery("#ID").val();
      var PSSWD = jQuery("#PSSWD").val();
      var ACCID = jQuery("#ACCID").val();
      var PASSWDINT = jQuery("#PASSWDINT").val();
  
      window.open("LoginAPI?ID=" + encodeURIComponent(ID) + "&amp;PSSWD=" + encodeURIComponent(PSSWD) + "&amp;ACCID=" + encodeURIComponent(ACCID) + "&amp;PASSWDINT=" + encodeURIComponent(PASSWDINT) + "", "LoginAPI");
  }
  </code></pre>
  
  <p>Please suggest.</p>