nichemtktg — 2012-08-13T22:23:26-04:00 — #1
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?
cpradio — 2012-08-14T05:33:20-04:00 — #2
The reason event.currentTarget works with getAttribute is because currentTarget is a DOM element and DOM element have access to getAttribute.
http://www.w3schools.com/jsref/event_currenttarget.asp - States that currentTarget is the DOM element that triggered the event
http://www.w3schools.com/jsref/met_element_getattribute.asp - States getAttribute can be used on DOM elements
nichemtktg — 2012-08-14T15:59:51-04:00 — #3
Very clear explanation. Thanks cpradio.