IEventTarget Interface
Contents
[
Hide
]IEventTarget interface
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 and dispatch of events to that.
public interface IEventTarget
Methods
Name | Description |
---|---|
addEventListener(String, IEventListener) | The EventTarget method addEventListener() sets up a function that will be called whenever the specified event is delivered to the target. |
addEventListener(String, IEventListener, bool) | The EventTarget method addEventListener() sets up a function that will be called whenever the specified event is delivered to the target. |
dispatchEvent(Event) | Dispatches an Event at the specified EventTarget, (synchronously) invoking the affected EventListeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with dispatchEvent(). |
removeEventListener(String, IEventListener) | This method allows the removal of event listeners from the event target. If an is removed from an while it is processing an event, it will not be triggered by the current actions. Event Listeners can never be invoked after being removed. |
removeEventListener(String, IEventListener, bool) | This method allows the removal of event listeners from the event target. If an is removed from an while it is processing an event, it will not be triggered by the current actions. Event Listeners can never be invoked after being removed. |
See Also
- package com.aspose.html.Dom.Events
- package Aspose.HTML