Working together for standards The Web Standards Project

It is not new, but it still is rather clever: In order to avoid having to add event handlers to each and every element you want to monitor, you can use one single handler on a parent element and let browser event bubbling do the rest of the work for you.

Check out this quick example of event handling versus event delegation to see how it is done and what the benefits are.

Your Replies

#1 On September 25th, 2006 12:44 pm