Chapter 6. Events are where it happens!

This chapter covers

  • The event models as implemented by the browsers
  • The jQuery event model
  • Binding event handlers to DOM elements
  • Event delegation
  • Namespacing events
  • The Event object instance
  • Triggering event handlers under script control
  • Registering proactive event handlers

Like many other GUI management systems, the interfaces presented by HTML web pages are asynchronous and event-driven, even if the protocol used to deliver them to the browser, HTTP, is wholly synchronous in nature. Whether a GUI is implemented as a desktop program using Java Swing, X11, or the .NET Framework, or as a page in a web application using HTML and JavaScript, the program steps are pretty much the same:

1.  Set ...

Get jQuery in Action, Third 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.