EventTarget
Overview
EventTarget is a class in Aspose.Html FOSS for Python.
Base class for objects that can receive DOM events.
This class provides 4 methods for working with EventTarget objects in Python programs.
Available methods include: __init__, add_event_listener, dispatch_event, remove_event_listener.
All public members are accessible to any Python application after installing the Aspose.Html FOSS for Python package.
Methods
| Signature | Description |
|---|---|
__init__() | Calls init on this EventTarget instance. |
add_event_listener(type: str, listener: Callable, capture: bool, once: bool) | Register listener for events of type. |
remove_event_listener(type: str, listener: Callable, capture: bool) | Deregister a previously-registered listener. |
dispatch_event(event: "Event") → bool | Dispatch event through the ancestor tree. |