Javascript.EventHandlers
Your code has entered an event handling function. What to do?
Presuming you have a function defined and intended for handling a specific type of event:
function onEvent(e) { // some code }
Your function may have:
- An event object argument (in this case e) passed in as an argument to the function
- A this reference that points to something or other:
- If the function was registered using the W3C DOM addEventListener() function then this will point to the element that was the source of the event (the triggering element).
- If the function was registered with attachEvent() (IE) then the this parameter will point to the relevant Window object, rather than to the element triggering the event
This is part of the SpineFORGE Reference Documentation for Javascript?