removeEventListener(eventName: string, callback: EventListenerOrEventListenerObject, capture?: boolean): void
Remove a global event listener.
Parameters
eventName: string
A string representing the event type to listen for.
callback: EventListenerOrEventListenerObject
The function to remove from the event.
capture?: boolean
Specifies whether the listener to be removed was registered as a capturing listener or not.