Software Engineering Wiki
Removes an event listener from an element.
- Use
EventTarget.removeEventListener()
to remove an event listener from an element. - Omit the fourth argument
opts
to usefalse
or specify it based on the options used when the event listener was added.