EventTarget
is a DOM interface implemented by objects that can receive events and may have listeners for them.Element
, Document
, and Window
are the most common event targets, but other objects can be event targets too, for example XMLHttpRequest
, AudioNode
, AudioContext
, and others.onevent
properties and attributes.addEventListener() | dispatchEvent() |
removeEventListener() |