EventTarget Class
The EventTarget interface is implemented by all Nodes in an implementation which supports the DOM Event Model. Therefore, this interface can be obtained by using binding-specific casting methods on an instance of the Node interface. The interface allows registration and removal of Event Listeners on an EventTarget and dispatch of events to that IEventTarget.
Inheritance Hierarchy

Namespace: Aspose.Html.Dom
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 20.11
Syntax
public class EventTarget : DOMObject, 
	IEventTarget, IDisposable

The EventTarget type exposes the following members.

Constructors
  NameDescription
Protected methodEventTarget
Initializes a new instance of the EventTarget class.
Methods
  NameDescription
Public methodAddEventListener(String, IEventListener)
This method allows the registration of event listeners on the event target.
Public methodAddEventListener(String, DOMEventHandler, Boolean)
This method allows the registration of event listeners on the event target.
Public methodAddEventListener(String, IEventListener, Boolean)
This method allows the registration of event listeners on the event target.
Public methodDispatchEvent
This method allows the dispatch of events into the implementations event model.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemoveEventListener(String, IEventListener)
This method allows the removal of event listeners from the event target. If an IEventListener is removed from an EventTarget while it is processing an event, it will not be triggered by the current actions. Event Listeners can never be invoked after being removed.
Public methodRemoveEventListener(String, DOMEventHandler, Boolean)
This method allows the removal of event listeners from the event target. If an IEventListener is removed from an EventTarget while it is processing an event, it will not be triggered by the current actions. Event Listeners can never be invoked after being removed.
Public methodRemoveEventListener(String, IEventListener, Boolean)
This method allows the removal of event listeners from the event target. If an IEventListener is removed from an EventTarget while it is processing an event, it will not be triggered by the current actions. Event Listeners can never be invoked after being removed.
Public methodToString (Inherited from Object.)
See Also