The Event interface is used to provide contextual information about an event to the handler processing the event
The following table lists the members exposed by the
Show inherited members (marked with *)
Used to indicate whether or not an event is a bubbling event.
Used to indicate whether or not an event can have its default action prevented.
Used to indicate the EventTarget whose EventListeners are currently being processed. This is particularly useful during capturing and bubbling.
Used to indicate whether
preventDefault() has been called for this event.
Used to indicate which phase of event flow is currently being evaluated.
The namespace URI associated with this event at initialization time, or null if it is unspecified.
Used to indicate the EventTarget to which the event was originally dispatched.
Used to specify the time (in milliseconds relative to the epoch) at which the event was created.
The name of the event (case-insensitive). The name must be an XML name.
The initEvent method is used to initialize the value of an Event created through the DocumentEvent interface.
initEvent( type , canBubble , cancelable )
Required Specifies the event type.
Required Specifies whether or not the event can bubble.
Required Specifies whether or not the event's default action can be prevented.
If an event is cancelable, the
preventDefault method is used to signify that the event is to be canceled, meaning any default action normally taken by the implementation as a result of the event will not occur.
Prevents other event listeners from being triggered and, unlike
stopPropagation() its effect is immediate
stopPropagation method is used prevent further propagation of an event during event flow. The event will complete dispatch to all listeners on the current EventTarget before event flow stops. This method may be used during any stage of event flow.
The event is currently being evaluated at the target EventTarget.
The current event phase is the bubbling phase.
The current event phase is the capturing phase.
Events of that type: