Gets the element that is the target of the event.
HRESULT IDOMEvent::get_target(IEventTarget **p);
- Address of a pointer to a variable of type IEventTarget interface that receives the original event target.
Returns S_OK if successful, or an error value otherwise.
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 IHTMLEventObj::srcElement in Internet Explorer 8 and earlier versions.