The onUnload event fires when a document is unloaded from the browser window. This occurs in three scenarios: when the browser window closes, when the page reloads (including refresh), and when the user navigates away from the page (clicking links, back/forward buttons). Therefore, all listed conditions are correct.