Aplicativos do Windows
Recolher sumário
Expandir sumário
EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

target property

Gets the element that is the target of the event.

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

 

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.

See also

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

 

 

Mostrar:
© 2016 Microsoft