title: Does hashchanges affect onbefore unload
body: <p>I have been searching and have not found any thing about how onbeforeunload is affected by hash changes. I have a jquery based single page app and am using hash changes to fire view changes. However I want to avoid having the user refresh the page, accidentally closing tabs etc..</p>
  
  <p>Does anyone have experience with this? I have googled but not found any general discussion only plugin specific git hub pages where both are mentioned on the same page.</p>
  
  <p>Thanks for your time</p>