Thursday, March 14, 2013

useCapture demystified (link)

Any guesses as to which will alert first?

    window.addEventListener("click", function(){alert(1)}, false);
    window.addEventListener("click", function(){alert(2)}, true);
Answer: the second one.

Read more...