title: Chrome - Detect When Browser Exits
body: <p>I am wondering if it is possible to detect whether the user exits the Chrome browser?</p>
  
  <p>EDIT - Sorry, I wasn't being very clear so I'll explain my situation. I am storing some variables in the browser's localstorage. When the user closes the browser, I want to delete some of these variables.</p>