EventTarget.removeEventListener() (Method)

Deregister an event listener that was established with the addEventListener() method.


DOM level - 2
JavaScript - 1.5
Netscape - 6.0
JavaScript syntax:NmyEventTarget.addEventListener(aType, aListener, aFlag)
Argument list:aTypeA string containing the event type
aListenerA reference to an EventListener function object
aFlagA Boolean value containing the useCapture dispostion

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:

See also:Element.onevent, EventTarget.addEventListener()