Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IEventTarget interface

Implements methods to register, unregister, and dispatch Document Object Model (DOM) events.

Members

The IEventTarget interface inherits from the IDispatch interface. IEventTarget also has these types of members:

Methods

The IEventTarget interface has these methods.

MethodDescription
addEventListener

Registers an event handler for the specified event type.

dispatchEvent

Sends an event to the current element.

removeEventListener

Removes an event handler that the IEventTarget::addEventListener method registered.

 

Requirements

Minimum supported client

Windows Vista with SP1, Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch

 

 

Community Additions

Show:
© 2016 Microsoft