Jaa


target property

Gets the element that is the target of the event.

 

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