For example; you may want something to happen when a user clicks on something. This can be handled with an onClick handler. You may want something to happen ONLY after the web page has fully loaded. This can be handled with the JavaScript handler onLoad.