Listening for Events the easy (YUI) way
The Event Utility makes listening for any event extremely easy. The events you may wish to listen for could be traditional events that are available under the browser's own event model, such as the click
event, or they may be custom events that you define yourself. This is where the real power of this utility resides. You should avoid working with events in the traditional way and give in completely to the ways of the Event Utility.
The Event Utility provides a framework that makes it easier to create event-driven applications, where you can listen for and react accordingly to interesting moments defined by the utilities, as well as in your own application. It has many features to help you create rich and interactive web applications including:
Automatic handler deferral: If the HTML element to which the event listener is to be attached, is not found by the script immediately, it is deferred for up to 15 seconds after the page has loaded to give...