title: window.open() Second time refresh (Don't open another window)
body: <ol>
  <li><p>Click Link (ex: onclick="javascript:window.open().location.href='URL')</p></li>
  <li><p>Open New Window(or New tab)</p></li>
  </ol>
  
  <p>First time only open new window(tab) but Second time refresh same window.(Don't open another window)</p>
  
  <p>How can this be possible?</p>
  
  <p>(Problem solved)</p>
  
  <pre><code>    function newWindow(url,target)
      {
          if(localStorage.getItem(target))
          {
              window.open(url,target);
          }else
          {
              localStorage.setItem(target,true);
              window.open(url,target);
          }
  
      }
  </code></pre>