Chapter 7. Catching Events
not intrinsic to the language itself. In previous chapters, the applications
onload event handler to call a
function when the page was finished loading. The actual event is the
load event, which is associated with the browser
window object. The
onload event handler is triggered when the page is
finished loading into the browser window.
The events themselves are relatively intuitive to understand. The World Wide Web Consortium (W3C) categorizes events into three distinct areas: user interface (mouse, keyboard), logical (result of a process), and mutation (action that modifies a document). Table 7-1 lists some basic events, their descriptions, and the affected objects.
Table 7-1. Events and affected objects