EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

currentTarget property

Gets the event target that is currently being processed.

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

Syntax

JavaScript

p = object.currentTarget

Property values

Type: Object

The current target of the event.

Standards information

Remarks

The target property returns the element that originally received an event. However, the currentTarget property returns the element that the event handlers are being processed for during the capturing and bubbling phases. At event phase AT_TARGET, the currentTarget and target objects are the same object.

See also

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

 

 

Anzeigen:
© 2014 Microsoft