title: how to close current browsing window in javascript using firefox
body: <p>I'm trying to close the current browsing window in JavaScript. I've tried the following code. It works in Chrome and Safari, but doesn't in Firefox.</p>
  
  <pre><code>var win = window.open('', '_self', '');
  win.close();
  </code></pre>