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