I am pretty sure JQuery can do this. So you would need to have JQuery then use the all selector
$("*").click(function() {
alert("Handler for .click() called.");
});
But you'd need to make sure you function handled every single things which could be clicked, some of which will not be Dynamics fields. So this is only half an answer.
Paul Developer of Summary Plus for Dynamics CRM. http://www.clew-consulting.com/summaryplus