Understanding Events

The browser event concept is pretty simple. An event is anything that alters the state of the browser or web page. These include loading of the page, mouse movements and clicks, keyboard input, as well as form submissions and other things occurring in the page. Each event has an event object that describes the event that took place and what object it took place on.

This section provides a few tables to help you get a quick overview of what event objects look like, what some of the more common events triggered in JavaScript are, and what triggers them.

Get jQuery and JavaScript Phrasebook 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.