title: Open new window on center of screen with this javascript?
body: <p>My experience with javascript is extraordinarily limited. I would like to have the new window open up in the center of the screen.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function fbs_click() {
  var twtTitle = document.title;
  var twtUrl = location.href;
  var maxLength = 140 - (twtUrl.length + 1);
  if (twtTitle.length &gt; maxLength) {
      twtTitle = twtTitle.substr(0, (maxLength - 3)) + '...';
  }
  var twtLink = 'http://twitter.com/home?status=' + encodeURIComponent(twtTitle + ' ' + twtUrl);
  window.open(twtLink,'','width=300,height=300'); } &lt;/script&gt;
  </code></pre>
  
  <p>If somebody can please update my code to accomplish a popup window which is centered that would be amazing!</p>