target property

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

Gets the element that is the target of the event.

Document Object Model (DOM) Level 3 Events Specification, Section 4.1Internet Explorer 9

Syntax

JavaScript

p = object.target

Property values

Type: Object

The original event target.

Standards information

Remarks

The target property returns the element that originally received the event. However, the currentTarget property returns the element that the event handlers are being processed for during the capturing and bubbling phases.

The target property is similar to srcElement in Windows Internet Explorer 8 and earlier versions.

See also

SVGZoomEvent
BeforeUnloadEvent
CompositionEvent
CustomEvent
Event
DragEvent
FocusEvent
KeyboardEvent
MessageEvent
MouseEvent
MouseWheelEvent
MutationEvent
MSSiteModeEvent
StorageEvent
TextEvent
UIEvent
Reference
currentTarget
eventPhase

 

 

Send comments about this topic to Microsoft

Build date: 1/23/2013

Did you find this helpful?
(1500 characters remaining)

Community Additions

© 2013 Microsoft. All rights reserved.