Event handler getter: Is there such a thing?

Event handler getter: Is there such a thing?

Can I get the handler associated with an event?  Something akin to...

<div id="myDiv" onclick="myClickHandler();"></div>
.....
var foo = $('#myDiv').returnEventHandler('click');  //...you get the idea...
//now foo would contain the handler "myClickHandler()" ???

Or, is there a straight javascript thingy to do this?
My searches went nowhere.