Appendix A. Event Handlers

JavaScript is a language that is inherently event-driven; that is to say that scripts created in JavaScript usually are executed as a result of an event caused either by the user or the browser itself. The way that we harness these events is through the use of event handlers. This appendix was created to give you a place where you can check out all of the different event handlers, their syntax, and a description of their uses.

Get Essential JavaScript™ for Web Professionals, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.