Is there anyway to capture all the events in a page dynamically through javascript / Jquery code. For example, if I click on a button i should know that onclick of a button happened throgh some code.
Please help me in capturing all the events dynamically. I know this can be done using monitorEvents in Chrome and firefox. But I want to capture the events through some code.