This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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

Attributions