I am looking for a way to list all elements that have onclick event on a page.
This is fairly easy if the traditional/old school method of event handler attachment is used (the following code is untested).
var getEventHandlers = function(nodes, eventType) {
var handlers = [], h;
for ( var i=0, l=nodes.length; i
Use:
console.log(getEventHandlers($("*"), "onclick"));
console.log(getEventHandlers($(".some-class"), "onclick"));