Chapter 7. Knock and the Door Will Open: Events and Listeners

In exploration of the Web 2.0 frontier, it is quite notable that pages no longer sit, statically starting back at users, waiting silently for the next hyperlink click that will send a clunky HTTP refresh and cause the page to change.

Events are actions, for instance a user clicking on a page element. To Listen for this action we create a listener, which is an action bound to an event. The actions are functions or object methods that are bound to HTML events. These events have keyword definitions, to name a few onClick, onFocus, and onChange.

And now, the main event...events, which include:

  • Standard and custom HTML events fired by the DOM
  • Bound listeners that encapsulate kinetic energies ...

Get MooTools 1.3 Cookbook 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.