I also know that the onLoad makes things happen when the HTML page fully loads. Well, the onUnload command makes something happen when the user unloads (leaves), the webpage.
It's best to keep the events that occur from the onLoad short, otherwise it could slow down the loading of the incoming page.