Code has been added to clipboard!

Deprecated jQuery .unload() Method

Example
$(window).unload(() => {
    alert("See you next time!");
});