While this is intended to be a crash course, I do want to note that event listeners don't quite get called like that. The event bubbling and capturing is quite accurate, but there are some specific differences in how listeners on any given element's event are called when compared to simply looping through and executing them:<p>The order in which they are called is not determinate. All of them will be called, but you cannot rely on the order in which they are called. Throwing an exception will also not prevent other event listeners from executing.<p>See: <a href="http://ajaxian.com/archives/the-differences-between-callbacks-and-events" rel="nofollow">http://ajaxian.com/archives/the-differences-between-callback...</a>