You are looking for:
Firequery
http://firequery.binaryage.com/
To do this yourself, you can always access the structure events datawith jQuery object.
Example:
$(document.body).bind('click', function(){
alert('I am an event handler!');
});
$.each($(document.body).data('events'), function(i,v){
console.log(i);
$.each(v, function(i2,v2){
console.log(' > ', v2.handler.toString());
});
});
FireBug/Webkit . .toString() v2 .
Anurag, , jQuery. addEventhandler() / addHandler inline-.
inline-, on-xxx. DOM level3 hasEventListenerNS, , - .