event.target returns a DOM element, so you can get any property / attribute that matters; therefore, to more accurately answer your question, you can always get nodeName , and you can get href and id if the element has href and id ; otherwise returns undefined .
However, inside the event handler, you can use this , which is also set to the DOM element; much easier.
$('foo').bind('click', function () {
Matt Oct. 11 '11 at 8:25 2011-10-11 08:25
source share