-
events and getAttribute
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 event
http://www.w3schools.com/jsref/met_e...tattribute.asp - States getAttribute can be used on DOM elements
-
Very clear explanation. Thanks cpradio.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks