EventTarget in DOM Level 2 Events

Interface inherited by all Nodes in a document which supports event handling.

For more information see http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventTarget.

Inerhited by:

Instance Methods

name returns description
addEventListener(type,listener,useCapture) (none)
dispatchEvent(evt) Boolean Dispatches an event to the invoking object.
removeEventListener(type,listener,useCapture) (none)

Description

The EventTarget interface is implemented by all Nodes in an implementation which supports the DOM Event Model. Therefore, this interface can be obtained by using binding-specific casting methods on an instance of the Node interface. The interface allows registration and removal of EventListeners on an EventTarget and dispatch of events to that EventTarget.

Properties that are a EventTarget

name object description
currentTarget Event (read only) The object to which the event handler was assigned.
relatedTarget MouseEvent (read only) Element the mouse moved out of or over.
target Event (read only) The object which caught the event.

Arguments that are a EventTarget

name in method of object description
relatedTargetArg initMouseEvent(typeArg,canBubbleArg,cancelableArg,…) MouseEvent