The removeEventListener() method will detach a previously registered function object from an EventTarget node. This will stop the event being handled by that target.
The three parameters to the removeEventListener() method are:
A string describing the event type being registered.
A reference to a function object that has been declared elsewhere in the script source text.
A Boolean flag value that indicates whether the event listener should use bubbling (bottom up) or capture (top down) event propagation. Both types can be registered separately but must also be removed separately.
Prev | Home | Next |
EventTarget.dispatchEvent() | Up | Exactly equal to (===) |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |