June 2025
Beginner
817 pages
31h 30m
English
You’ve already learned that there’s a large set of JavaScript events for which you can set up an event handler for elements in the HTML document. This section provides a brief overview of the various events.
Table 19.4 contains an overview of common JavaScript events that are primarily related to the web browser UI and that you can respond to with an event handler. After listing these events, I’ll describe how you can use onload and onunload separately.
|
JavaScript Event |
The Event Occurs When . . . |
|---|---|
|
error |
An error occurred while a document or image was loaded. |
|
load |
The document or frameset has been loaded. |
|
resize |
The ... |
Read now
Unlock full access