title: Popup window link launching in window as well as in the browser tab
body: <p>I'm working on a website built using Laravel and AngularJS.
  I want a certain link to open in a popup window. 
  The javascript code is</p>
  
  <pre><code>function popitup(url) {
      newwindow=window.open(url,'test','height=400,width=550');
      if (window.focus) {newwindow.focus()}
      return false;
      }
  </code></pre>
  
  <p>and the link is</p>
  
  <pre><code>&lt;a ui-sref="test({id:test.id})" class="btn btn-primary fright" onclick="return popitup(this.href)" oncontextmenu="return false;"&gt;Resume&lt;/a&gt;
  </code></pre>
  
  <p>when I click on the button the popup works fine but the link also opens up in the tab where I clicked it, but I don't want it to.
  Is there a way to do it?</p>