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.