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
You can handle all click using window.onclick and then filter using event.target
Example as you asked:
google yahoo facebook