First we need to get all of the events on the DOM element with jQuery._data(element, ‘events’). Then from this we can get out events (click, hover, etc.).
Events will be arranged by type in an array. We get the first click event by doing “.resize”. From this we get the actual function call with “.handler”. Using Chrome as the browser will give you the function at this point:
If using another browser like Firefox we need another step. We can put the whole statement into an alert to display the function’s contents: