title: Capturing the events through some code of JavaScript
body: <p>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 <code>onclick</code> of a button happened through some code.</p>
  <p>Please help me in  capturing all the events dynamically. I know this can be done using <code>monitorEvents</code> in Chrome and Firefox, but I want to capture the events through some code.</p>