javascript Node addEventListener( )
addEventListener( ) | Firefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM 2 |
addEventListener("eventType", listenerFunction, useCapture) |
|
Binds an event handler function to the current node so that the function executes when an event of a particular type arrives at the node either as event target or during event propagation. Note that W3C DOM events propagate through text nodes, as well as element nodes. The node listens for the event type either during event capture or event bubbling propagation, depending upon the setting of the Boolean third parameter. You may invoke this method multiple times for the same node but with different parameter values to assign as many event handling behaviors as you like, but only one listener function may be invoked for the same event and propagation type. If the event listener is added on a temporary basis, it may be removed via the removeEventListener( ) method. |
|
Parameters | |
"click","mouseover" ... view all on**** events |
|
Returned Value | |
None. |
Powered by Linode.