onbeforeunload [HTML5]

Function to call when the document is about to be unloaded.