HTML » body » onunload


The onunload attribute is an event that allows a JavaScript code to execute when your HTML document is unloaded.