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.

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

Attributions