I am thinking of to add a javascript function to capture all the click events inside a html page.
So I am adding a global function that govern
I guess this simple code will work with jquery.
$("a").click(function(){ alert($(this).attr('href')); });
Without JQuery:
window.onclick = function(e) { if(e.target.localName=='a') alert(e.target); };
The above will produce the same result.