Mozilla.com

  1. MDC
  2. Main Page
  3. DOM
  4. EventTarget
Table of contents
  1. 1. Methods
  2. 2. Specification
Table of contents
  1. 1. Methods
  2. 2. Specification

« Gecko DOM Reference

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

Methods

Name & Description Return
addEventListener( type, handler, bubble )
Register an event handler of a specific event type on the EventTarget.
-
removeEventListener( type, handler )
Removes an event listener from the EventTarget.
-
dispatchEvent( event )
Dispatch an event to this EventTarget.
Boolean

Page last modified 19:15, 8 Mar 2007 by Nickolay

Files (0)