XHTML » frameset » onunload

The onunload attribute is an event that allows a JavaScript code to execute when the frame is unloaded by the browser.