We are working on a JavaScript tool that has older code in it, so we cannot re-write the whole tool.
Now, a menu was added position fixed to the bottom and the clien
If you make sure that this is the first event handler work, something like this might do the trick:
$('*').click(function(event) {
if (this === event.target) { // only fire this handler on the original element
alert('clicked');
}
});
Note that, if you have lots of elements in your page, this will be Really Very Slow, and it won't work for anything added dynamically.