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:
- Node
- SVGAElement
- SVGAnimationElement
- SVGCircleElement
- SVGDefsElement
- SVGElementInstance
- SVGEllipseElement
- SVGForeignObjectElement
- SVGGElement
- SVGImageElement
- SVGLineElement
- SVGRectElement
- SVGSwitchElement
- SVGSymbolElement
- SVGTextContentElement
- SVGUseElement
- SVGAnimateColorElement
- SVGAnimateElement
- SVGAnimateMotionElement
- SVGAnimateTransformElement
- SVGSetElement
- SVGTextPathElement
- SVGTextPositioningElement
- SVGAltGlyphElement
- SVGTextElement
- SVGTRefElement
- SVGTSpanElement
- Attr
- CharacterData
- Document
- DocumentFragment
- DocumentType
- Element
- Entity
- EntityReference
- Notation
- ProcessingInstruction
- HTMLDocument
- SVGDocument
- Comment
- Text
- CDATASection
- HTMLElement
- SVGElement
- SVGAltGlyphDefElement
- SVGAltGlyphItemElement
- SVGClipPathElement
- SVGColorProfileElement
- SVGComponentTransferFunctionElement
- SVGCursorElement
- SVGDefinitionSrcElement
- SVGDescElement
- SVGFEBlendElement
- SVGFEColorMatrixElement
- SVGFEComponentTransferElement
- SVGFECompositeElement
- SVGFEConvolveMatrixElement
- SVGFEDiffuseLightingElement
- SVGFEDisplacementMapElement
- SVGFEDistantLightElement
- SVGFEFloodElement
- SVGFEGaussianBlurElement
- SVGFEImageElement
- SVGFEMergeElement
- SVGFEMergeNodeElement
- SVGFEMorphologyElement
- SVGFEOffsetElement
- SVGFEPointLightElement
- SVGFESpecularLightingElement
- SVGFESpotLightElement
- SVGFETileElement
- SVGFETurbulenceElement
- SVGFilterElement
- SVGFontElement
- SVGFontFaceElement
- SVGFontFaceFormatElement
- SVGFontFaceNameElement
- SVGFontFaceSrcElement
- SVGFontFaceUriElement
- SVGGlyphElement
- SVGGlyphRefElement
- SVGGradientElement
- SVGHKernElement
- SVGMarkerElement
- SVGMaskElement
- SVGMetadataElement
- SVGMissingGlyphElement
- SVGMPathElement
- SVGPathElement
- SVGPatternElement
- SVGPolygonElement
- SVGPolylineElement
- SVGScriptElement
- SVGStopElement
- SVGStyleElement
- SVGSVGElement
- SVGTitleElement
- SVGViewElement
- SVGVKernElement
- SVGFEFuncAElement
- SVGFEFuncBElement
- SVGFEFuncGElement
- SVGFEFuncRElement
- SVGLinearGradientElement
- SVGRadialGradientElement
- HTMLAnchorElement
- HTMLAppletElement
- HTMLAreaElement
- HTMLBaseElement
- HTMLBaseFontElement
- HTMLBodyElement
- HTMLBRElement
- HTMLButtonElement
- HTMLDirectoryElement
- HTMLDivElement
- HTMLDListElement
- HTMLFieldSetElement
- HTMLFontElement
- HTMLFormElement
- HTMLFrameElement
- HTMLFrameSetElement
- HTMLHeadElement
- HTMLHeadingElement
- HTMLHRElement
- HTMLHtmlElement
- HTMLIFrameElement
- HTMLImageElement
- HTMLInputElement
- HTMLIsIndexElement
- HTMLLabelElement
- HTMLLegendElement
- HTMLLIElement
- HTMLLinkElement
- HTMLMapElement
- HTMLMenuElement
- HTMLMetaElement
- HTMLModElement
- HTMLObjectElement
- HTMLOListElement
- HTMLOptGroupElement
- HTMLOptionElement
- HTMLParagraphElement
- HTMLParamElement
- HTMLPreElement
- HTMLQuoteElement
- HTMLScriptElement
- HTMLSelectElement
- HTMLStyleElement
- HTMLTableCaptionElement
- HTMLTableCellElement
- HTMLTableColElement
- HTMLTableElement
- HTMLTableRowElement
- HTMLTableSectionElement
- HTMLTextAreaElement
- HTMLTitleElement
- HTMLUListElement
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 |