target
Summary
Gets the element that is the original target of the event.
Property of dom/Eventdom/Event
Syntax
Note: This property is read-only.
var originalTargetElement = event.target;
Return Value
Returns an object of type DOM NodeDOM Node
The original target element of the event.
Usage
Use this property to determine the original element on which the event was dispatched.
Notes
The currentTarget property returns the element that the event handlers are being processed for during the capturing and bubbling phases.
Related specifications
- DOM Level 3 Events
- Working Draft
See also
Related pages
- SVGZoomEventSVGZoomEvent
- BeforeUnloadEventBeforeUnloadEvent
- CompositionEventCompositionEvent
- CustomEventCustomEvent
- DragEventDragEvent
- EventEvent
- FocusEventFocusEvent
- KeyboardEventKeyboardEvent
- MessageEventMessageEvent
- MouseEventMouseEvent
- MutationEventMutationEvent
- StorageEventStorageEvent
- TextEventTextEvent
- UIEventUIEvent
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]