The HTML DOM object model defines an Event object with a target property.
Event
Looking at MSDN, Microsoft documents a target property. They also document srcElem
use:
var target = (event.target !== undefined)? event.target.name : event.srcElement.tagName;
then:
if ( target === 'A' || target === '...') { ... }
OR: simple use:
var target = event.srcElement.tagName;
tested on Chrome 35 :)