"http://www.w3.org/TR/html4/strict.dtd">
Example 9: Handling Click Events
Example 9: Handling Click Events
This example demonstrates how to register a "click" event handler for a MenuItem instance. All of the events for YUI Menu are instances of YAHOO.util.CustomEvent. To register a listener for an event, use the event's "subscribe" method passing a pointer to your handler as the first argument. You can pass an argument to your event handler(s) as an additional second argument to the "subscribe" method.
yui.zip( 3,714 k)