document.querySelector("body").addEventListener("click",function(e){ e=e||window.event ;var t=e.target||e.srcElement ;if("A"!==t.tagName&&(t=t.parentNode),"A"===t.tagName){ var n=t.href ;console.log("Generic Click Intercept"),console.log(n) } return!1 });