title: Tweet button opening new window and new tab
body: <p>I am doing FreeCodeCamp's Random Quote Machine exercise.</p>
  
  <p>Using <a href="https://stackoverflow.com/a/22962821/4956253">this answer</a>, I tried to set up my tweet button to open up a new window rather than a tab that the user could use to Tweet this quotes with.</p>
  
  <p>The only issue is is that it is opening up a new tab <strong>as well as</strong> a new window. Is there any way I could get it to just open the new window?</p>
  
  <p><strong>HTML for Tweet Link</strong></p>
  
  <pre><code>&lt;a class="twitter-share-button" href="https://twitter.com/intent/tweet" target="_newwin"&gt;
  Tweet&lt;/a&gt;
  </code></pre>
  
  <p><strong>Related JavaScript</strong></p>
  
  <pre><code>jQuery('a[target^="_newwin"]').click(function() {
      var width = 500;
      var height = 300;
      window.open(this.href , 'newwindow', 'width=' + width + ', height=' + height + ', top=' + ((window.innerHeight - height) / 2) + ', left=' + ((window.innerWidth - width) / 2));
  });
  </code></pre>
  
  <p><a href="http://codepen.io/DouglasSymb/pen/QEoVgw" rel="nofollow noreferrer">Pen of my Project</a></p>
  
  <p>Thank you!</p>