brokendisk

Event bubbling in Javascript

While working on the dashboard for our framework I’ve been toying with the concept of event bubbling in Javascript.

We heavily employ DOM manipulation (using jquery) and it has been a real pleasure to figure out and control how events propagate up through the DOM. It took me a little while to understand how jQuery’s event methods give you control over this (documented here: http://api.jquery.com/category/events/), and I made this very basic demonstration:

http://brokendisk.com/code/event_bubbling.html

Leave a Reply

Powered by WP Hashcash