O'Reilly logo

jQuery in Action, Third Edition by Yehuda Katz Bear Bibeault and Aurelio De Rosa

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required