I have a situation where on page unload I am firing a request to delete the draft of a user\'s work. This works fine until a user chooses to refresh the page, whereupon ins
You can try using window.onbeforeunload instead, though I'm not sure if it's implemented in all browsers.