It is not possible to do this directly using javascript.
Jquery has several features to track this data.
One βcleanβ way to do this is to change the addEventListener / attachEvent function using prototyping (search for javascript prototype material, not the framework).
Or, if you have a custom function for adding / removing events, you can configure it.
Good thing it is.
source
share