EventTarget
interface is implemented by objects that can receive events and may have listeners for them. addEventListener() | Registers an event handler of a specific event type on the EventTarget . addEventListener is recommended over using on…event because it allows to add multiple handlers for an event (think libraries) and works on any event target, not just HTML or SVG elements. |
dispatchEvent() | Dispatches an event to its target. |
removeEventListener() | Removes an event listener from the EventTarget |