O'Reilly logo

MooTools 1.3 Cookbook by Jay Larry G. Johnston

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

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