0

Javascript Propagation Dilemma!

imagine that a <p> is inside of a <div>, then we want to assign "onclick" event to both. which onclick event will happen first if I define this: p.addEventListener("click", func1, false); div.addEventListener("click", func2, true); and please tell why?

2nd Dec 2016, 10:05 AM
Farshad Hosseinzadeh
Farshad Hosseinzadeh - avatar
1 Antwort
2nd Dec 2016, 11:50 AM
Ondřej Doněk
Ondřej Doněk - avatar