Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
target

target property

Gets the element that is the target of the event.

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

 

Syntax

HRESULT value = object.get_target(IEventTarget** p);

Property values

Type: Object

The original event target.

Standards information

Remarks

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

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

See also

Reference
IDOMEvent::currentTarget
IDOMEvent::eventPhase

 

 

Community Additions

ADD
Show:
© 2015 Microsoft