Class: Event
- Last UpdatedMay 21, 2025
- 1 minute read
This is a base event class which is used for all events dispatched by any
instance of EventTarget
within the API.
Name | Type | Description |
---|---|---|
type |
string |
Event Type. |
opt_target |
Object |
optional
A reference to the object that is the target of
the given event. It must implement the |
Members
-
This property indicates that the event is being evaluated at the target.
-
This property identifies the current event phase as the bubbling phase.
-
This property identifies the current event phase as the capturing phase.
-
This property holds an object that receives notification of the event (via an attached listener).
-
This property holds a value indicating if
preventDefault()
was called on the current event. -
This property indicates which phase of the event flow is being evaluated.
-
This property holds the object which triggered the event.
-
This property holds the name of the dispatched event.
Methods
-
This method sets a flag that can be used to prevent the default behavior when the even is fired.
-
This method stops the propagation of the event.