I know event.currentTarget works with getAttribute, but I can't find a reference that says that. Is there one? If not why? I so, where should I look?
The reason event.currentTarget works with getAttribute is because currentTarget is a DOM element and DOM element have access to getAttribute.
Sources:http://www.w3schools.com/jsref/event_currenttarget.asp - States that currentTarget is the DOM element that triggered the eventhttp://www.w3schools.com/jsref/met_element_getattribute.asp - States getAttribute can be used on DOM elements
Very clear explanation. Thanks cpradio.
This topic is now closed. New replies are no longer allowed.