I am trying to capture all the click events on a page.
I can use this:
window.addEventListener('click', function(e){
    console.log(e.target);
}, true);
or
$("*").delegate("*", "click", function(e){
    if (e.target === this) {
        console.log(e.target);
    }
});
What is the difference?
 
     
     
    