title: How do I close a window in JavaScript/jQuery?
body: <p>I want to create a link that says 'Close' and it should close the window. Anyone have any idea how to do this?</p>
  
  <p>I've looked at other people's questions and it seems I can't find anything that works.</p>
  
  <p>This is what I have right now: </p>
  
  <pre><code>&lt;a id="noThanks" href="JavaScript:window.close()"&gt;No, thanks&lt;/a&gt;
  </code></pre>