EventTarget
is a DOM interface implemented by objects that can receive DOM events and have listeners for them. The most common EventTarget
s are DOM elements, although other objects can be EventTarget
s too, for example document, window, XMLHttpRequest, and others.