6. Capturing and Using Browser and User Events

One of the major goals of jQuery and JavaScript is to allow developers to create incredibly sophisticated and richly active web pages. At the heart of interactive web pages are events. An event refers to anything happening in the browser environment, from a page loading, to a mouse movement or click, to keyboard input, to resizing of the window.

Understanding events, the objects that represent them, and how to apply them in your web pages will enable to you to create some spectacular user interaction. This chapter covers the concepts required to understand events and how to utilize them in building rich, interactive web pages.

The phrases in this chapter are designed to show you how the JavaScript ...

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.