dom - JavaScript Event Flow - When would you use it. Real World Example -


when ever use event flow application? i'm referring third parameter of addeventlistener function. can provide real world example?

thank in advance.

there aren't lot of reasons use event capturing instead of event bubbling. furthermore, event capturing isn't supported in ie8.

for more info, this page deals differences between bubbling/capturing.

in practice, reason can think of use event capturing deal events don't bubble, namely onfocus , onblur. see so post dealing onblur


Comments