--- title: Event slug: Web/API/Event translation_of: Web/API/Event ---

{{APIRef("DOM")}}

The Event interface represents any event of the DOM. It contains common properties and methods to any event.

A lot of other interfaces inherits, directly or not, from this base interface:

Constructor

{{domxref("Event.Event", "Event()")}}
Creates an Event object.

Properties

This interface doesn't inherit any property.

{{domxref("Event.bubbles")}} {{readonlyinline}}
A boolean indicating whether the event bubbles up through the DOM or not.
{{domxref("Event.cancelable")}} {{readonlyinline}}
A boolean indicating whether the event is cancelable.
{{domxref("Event.currentTarget")}} {{readonlyinline}}
A reference to the currently registered target for the event.
{{domxref("Event.defaultPrevented")}} {{readonlyinline}}
Indicates whether or not {{domxref("event.preventDefault()")}} has been called on the event.
{{domxref("Event.eventPhase")}} {{readonlyinline}}
Indicates which phase of the event flow is being processed.
{{domxref("Event.explicitOriginalTarget")}} {{non-standard_inline}} {{readonlyinline}}
The explicit original target of the event (Mozilla-specific).
{{domxref("Event.originalTarget")}} {{non-standard_inline}} {{readonlyinline}}
The original target of the event, before any retargetings (Mozilla-specific).
{{domxref("Event.target")}} {{readonlyinline}}
A reference to the target to which the event was originally dispatched.
{{domxref("Event.timeStamp")}} {{readonlyinline}}
The time that the event was created.
{{domxref("Event.type")}} {{readonlyinline}}
The name of the event (case-insensitive).
{{domxref("Event.isTrusted")}} {{readonlyinline}}
Indicates whether or not the event was initiated by the browser (after a user click for instance) or by a script (using an event creation method, like event.initEvent)

Methods

This interface doesn't inherit any method.

{{domxref("Event.initEvent()")}} {{deprecated_inline}}
Initializes the value of an Event created. If the event has already being dispatched, this method does nothing.
{{domxref("Event.preventBubble()")}} {{non-standard_inline}} {{Obsolete_inline(24)}}
Prevents the event from bubbling. Obsolete, use {{domxref("event.stopPropagation")}} instead.
{{domxref("Event.preventCapture()")}} {{non-standard_inline}} {{Obsolete_inline(24)}}
Obsolete, use {{domxref("event.stopPropagation")}} instead.
{{domxref("Event.preventDefault()")}}
Cancels the event (if it is cancelable).
{{domxref("Event.stopImmediatePropagation()")}}
For this particular event, no other listener will be called. Neither those attached on the same element, nor those attached on elements which will be traversed later (in capture phase, for instance)
{{domxref("Event.stopPropagation()")}}
Stops the propagation of events further along in the DOM.
{{domxref("Event.getPreventDefault()")}} {{non-standard_inline}}
?

See also