Appendix C. Intrinsic Events
An intrinsic event determines when an associated script will run. However, not every intrinsic event works with every (X)HTML element. This table illustrates which events and tags work together. For more information on associating a script with an intrinsic event, consult Triggering a Script on page 316.
Intrinsic Events | ||
|---|---|---|
EVENT | WORKS WITH | WHEN |
onblur |
| the visitor leaves an element that was previously in focus (see |
onchange |
| the visitor modifies the value or contents of the element |
onclick | All elements except | the visitor clicks on the specified ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access