title: How do I detect a page refresh using jquery?
body: <p>How might I capture the page reload event?</p>
  
  <p>I have a messaging system which loses all its input when the user refreshes the page. I want to use ajax to re-populate, hence my need to detect when the page has been refreshed/reloaded.</p>