The removeEventListener()
method of the EventTarget
interface removes an event listener previously registered with EventTarget.addEventListener()
from the target. The event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional options that may affect the matching process; see Matching event listeners for removal.