This interface inherits properties from its parent, web.Event
:
This interface inherits properties from its parent, `web.Event`:
(bubbles this)
Property.
The bubbles read-only property of the web.Event
interface indicates
the event bubbles up through the DOM or not.
var doesItBubble = event.bubbles;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/bubbles
Property. The bubbles read-only property of the `web.Event` interface indicates the event bubbles up through the DOM or not. `var doesItBubble = event.bubbles;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/bubbles`
(cancel-bubble this)
Property.
The cancelBubble property of the web.Event
interface is a historical
to web.Event.stopPropagation()
. Setting its value to true before
from an event handler prevents propagation of the event. In later
setting this to false does nothing. See Browser compatibility
details.
event.cancelBubble = bool; var bool = event.cancelBubble;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelBubble
Property. The cancelBubble property of the `web.Event` interface is a historical to `web.Event.stopPropagation()`. Setting its value to true before from an event handler prevents propagation of the event. In later setting this to false does nothing. See Browser compatibility details. `event.cancelBubble = bool; var bool = event.cancelBubble;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelBubble`
(cancelable this)
Property.
The cancelable read-only property of the web.Event
interface
whether the event can be canceled, and therefore prevented as
the event never happened.
bool = event.cancelable;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelable
Property. The cancelable read-only property of the `web.Event` interface whether the event can be canceled, and therefore prevented as the event never happened. `bool = event.cancelable;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelable`
(composed this)
Property.
The read-only composed property of the web.Event
interface
a web.Boolean
which indicates whether or not the event will
across the shadow DOM boundary into the standard DOM.
var composed = Event.composed;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/composed
Property. The read-only composed property of the `web.Event` interface a `web.Boolean` which indicates whether or not the event will across the shadow DOM boundary into the standard DOM. `var composed = Event.composed;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/composed`
(composed-path this)
Method.
The composedPath() method of the web.Event
interface returns
event’s path which is an array of the objects on which listeners
be invoked. This does not include nodes in shadow trees if the
root was created with its web.ShadowRoot.mode
closed.
var composed = Event.composedPath();
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath
Method. The composedPath() method of the `web.Event` interface returns event’s path which is an array of the objects on which listeners be invoked. This does not include nodes in shadow trees if the root was created with its `web.ShadowRoot.mode` closed. `var composed = Event.composedPath();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath`
Constructor.
The CustomEvent() constructor creates a new web.CustomEvent
.
typeArg
A dom.DOMString
representing the name of the event.
customEventInit Optional
A CustomEventInit dictionary, having the following fields:
"detail", optional and defaulting to null, of type any, that is an event-dependent value associated with the event.
The CustomEventInit dictionary also accepts fields from the web.EventInit
dictionary.
See also: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent
Constructor. The CustomEvent() constructor creates a new `web.CustomEvent`. typeArg A `dom.DOMString` representing the name of the event. customEventInit Optional A CustomEventInit dictionary, having the following fields: \"detail\", optional and defaulting to null, of type any, that is an event-dependent value associated with the event. The CustomEventInit dictionary also accepts fields from the `web.EventInit` dictionary. See also: `https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent`
(create-event this & args)
Method.
Creates a new event, which must then be initialized by calling initEvent() method.
`document.createEvent(type)
type A string indicating the event type to create.
This method returns a new DOM web.Event
object of the specified type, which must be initialized before use.`
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/createEvent
Method. Creates a new event, which must then be initialized by calling initEvent() method. `document.createEvent(type) type A string indicating the event type to create. This method returns a new DOM `web.Event` object of the specified type, which must be initialized before use.` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/createEvent`
(current-target this)
Property.
The currentTarget read-only property of the web.Event
interface
the current target for the event, as the event traverses the
It always refers to the element to which the event handler has
attached, as opposed to web.Event.target
, which identifies
element on which the event occurred and which may be its direct
var currentEventTarget = event.currentTarget;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/currentTarget
Property. The currentTarget read-only property of the `web.Event` interface the current target for the event, as the event traverses the It always refers to the element to which the event handler has attached, as opposed to `web.Event.target`, which identifies element on which the event occurred and which may be its direct `var currentEventTarget = event.currentTarget;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/currentTarget`
(default-prevented this)
Property.
The defaultPrevented read-only property of the web.Event
interface
a web.Boolean
indicating whether or not web.Event.preventDefault()
called on the event.
var defaultWasPrevented = event.defaultPrevented;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/defaultPrevented
Property. The defaultPrevented read-only property of the `web.Event` interface a `web.Boolean` indicating whether or not `web.Event.preventDefault()` called on the event. `var defaultWasPrevented = event.defaultPrevented;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/defaultPrevented`
(detail this)
Property.
The detail readonly property of the web.CustomEvent
interface
any data passed when initializing the event.
let myDetail = customEventInstance.detail;
See also: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/detail
Property. The detail readonly property of the `web.CustomEvent` interface any data passed when initializing the event. `let myDetail = customEventInstance.detail;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/detail`
(event-phase this)
Property.
The eventPhase read-only property of the web.Event
interface
which phase of the event flow is currently being evaluated.
var phase = event.eventPhase;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/eventPhase
Property. The eventPhase read-only property of the `web.Event` interface which phase of the event flow is currently being evaluated. `var phase = event.eventPhase;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/eventPhase`
(explicit-original-target this)
Property.
The explicit original target of the event. (Mozilla-specific)
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/explicitOriginalTarget
Property. The explicit original target of the event. (Mozilla-specific) See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/explicitOriginalTarget`
(init-custom-event this type can-bubble cancelable detail)
Method.
The CustomEvent.initCustomEvent() method initializes a CustomEvent If the event has already been dispatched, this method does nothing.
event.initCustomEvent(type, canBubble, cancelable, detail);
See also: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/initCustomEvent
Method. The CustomEvent.initCustomEvent() method initializes a CustomEvent If the event has already been dispatched, this method does nothing. `event.initCustomEvent(type, canBubble, cancelable, detail);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/initCustomEvent`
(init-event this & args)
Method.
The Event.initEvent() method is used to initialize the value
an web.event
created using web.Document.createEvent()
.
`event.initEvent(type, bubbles, cancelable);
type
Is a dom.DOMString
defining the type of event.
bubbles
Is a web.Boolean
deciding whether the event should bubble up through the event chain or not. Once set, the read-only property web.Event.bubbles
will give its value.
cancelable
Is a web.Boolean
defining whether the event can be canceled. Once set, the read-only property web.Event.cancelable
will give its value.`
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/initEvent
Method. The Event.initEvent() method is used to initialize the value an `web.event` created using `web.Document.createEvent()`. `event.initEvent(type, bubbles, cancelable); type Is a `dom.DOMString` defining the type of event. bubbles Is a `web.Boolean` deciding whether the event should bubble up through the event chain or not. Once set, the read-only property `web.Event.bubbles` will give its value. cancelable Is a `web.Boolean` defining whether the event can be canceled. Once set, the read-only property `web.Event.cancelable` will give its value.` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/initEvent`
(is-trusted this)
Property.
The isTrusted read-only property of the web.Event
interface
a web.Boolean
that is true when the event was generated by
user action, and false when the event was created or modified
a script or dispatched via web.EventTarget.dispatchEvent()
.
var eventIsTrusted = event.isTrusted;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/isTrusted
Property. The isTrusted read-only property of the `web.Event` interface a `web.Boolean` that is true when the event was generated by user action, and false when the event was created or modified a script or dispatched via `web.EventTarget.dispatchEvent()`. `var eventIsTrusted = event.isTrusted;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/isTrusted`
(original-target this)
Property.
The original target of the event before any retargetings. (Mozilla-specific)
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/originalTarget
Property. The original target of the event before any retargetings. (Mozilla-specific) See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/originalTarget`
(prevent-default this)
Method.
The web.Event
interface's preventDefault() method tells the
agent that if the event does not get explicitly handled, its
action should not be taken as it normally would be.
event.preventDefault();
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault
Method. The `web.Event` interface's preventDefault() method tells the agent that if the event does not get explicitly handled, its action should not be taken as it normally would be. `event.preventDefault();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault`
(return-value this)
Property.
The web.Event
property returnValue indicates whether the default
for this event has been prevented or not.
`event.returnValue = bool;
var bool = event.returnValue;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/returnValue
Property. The `web.Event` property returnValue indicates whether the default for this event has been prevented or not. `event.returnValue = bool; var bool = event.returnValue;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/returnValue`
(set-cancel-bubble! this val)
Property.
The cancelBubble property of the web.Event
interface is a historical
to web.Event.stopPropagation()
. Setting its value to true before
from an event handler prevents propagation of the event. In later
setting this to false does nothing. See Browser compatibility
details.
event.cancelBubble = bool; var bool = event.cancelBubble;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelBubble
Property. The cancelBubble property of the `web.Event` interface is a historical to `web.Event.stopPropagation()`. Setting its value to true before from an event handler prevents propagation of the event. In later setting this to false does nothing. See Browser compatibility details. `event.cancelBubble = bool; var bool = event.cancelBubble;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelBubble`
(set-detail! this val)
Property.
The detail readonly property of the web.CustomEvent
interface
any data passed when initializing the event.
let myDetail = customEventInstance.detail;
See also: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/detail
Property. The detail readonly property of the `web.CustomEvent` interface any data passed when initializing the event. `let myDetail = customEventInstance.detail;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/detail`
(set-explicit-original-target! this val)
Property.
The explicit original target of the event. (Mozilla-specific)
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/explicitOriginalTarget
Property. The explicit original target of the event. (Mozilla-specific) See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/explicitOriginalTarget`
(set-original-target! this val)
Property.
The original target of the event before any retargetings. (Mozilla-specific)
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/originalTarget
Property. The original target of the event before any retargetings. (Mozilla-specific) See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/originalTarget`
(set-return-value! this val)
Property.
The web.Event
property returnValue indicates whether the default
for this event has been prevented or not.
`event.returnValue = bool;
var bool = event.returnValue;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/returnValue
Property. The `web.Event` property returnValue indicates whether the default for this event has been prevented or not. `event.returnValue = bool; var bool = event.returnValue;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/returnValue`
(set-src-element! this val)
Property.
Event.srcElement is a proprietary alias (implemented in Internet
for the standard web.Event.target
property, which is supported
some other browsers for web compatibility purposes.
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/srcElement
Property. Event.srcElement is a proprietary alias (implemented in Internet for the standard `web.Event.target` property, which is supported some other browsers for web compatibility purposes. See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/srcElement`
(set-target! this val)
Property.
The target property of the web.Event
interface is a reference
the object that dispatched the event. It is different from web.Event.currentTarget
the event handler is called during the bubbling or capturing
of the event.
var theTarget = event.target;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/target
Property. The target property of the `web.Event` interface is a reference the object that dispatched the event. It is different from `web.Event.currentTarget` the event handler is called during the bubbling or capturing of the event. `var theTarget = event.target;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/target`
(set-time-stamp! this val)
Property.
The timeStamp read-only property of the web.Event
interface
the time (in milliseconds) at which the event was created.
var time = event.timeStamp;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/timeStamp
Property. The timeStamp read-only property of the `web.Event` interface the time (in milliseconds) at which the event was created. `var time = event.timeStamp;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/timeStamp`
(src-element this)
Property.
Event.srcElement is a proprietary alias (implemented in Internet
for the standard web.Event.target
property, which is supported
some other browsers for web compatibility purposes.
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/srcElement
Property. Event.srcElement is a proprietary alias (implemented in Internet for the standard `web.Event.target` property, which is supported some other browsers for web compatibility purposes. See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/srcElement`
(stop-immediate-propagation this)
Method.
The stopImmediatePropagation() method of the web.Event
interface
other listeners of the same event from being called.
event.stopImmediatePropagation();
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/stopImmediatePropagation
Method. The stopImmediatePropagation() method of the `web.Event` interface other listeners of the same event from being called. `event.stopImmediatePropagation();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/stopImmediatePropagation`
(stop-propagation this)
Method.
The stopPropagation() method of the web.Event
interface prevents
propagation of the current event in the capturing and bubbling
event.stopPropagation();
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation
Method. The stopPropagation() method of the `web.Event` interface prevents propagation of the current event in the capturing and bubbling `event.stopPropagation();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation`
(target this)
Property.
The target property of the web.Event
interface is a reference
the object that dispatched the event. It is different from web.Event.currentTarget
the event handler is called during the bubbling or capturing
of the event.
var theTarget = event.target;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/target
Property. The target property of the `web.Event` interface is a reference the object that dispatched the event. It is different from `web.Event.currentTarget` the event handler is called during the bubbling or capturing of the event. `var theTarget = event.target;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/target`
(time-stamp this)
Property.
The timeStamp read-only property of the web.Event
interface
the time (in milliseconds) at which the event was created.
var time = event.timeStamp;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/timeStamp
Property. The timeStamp read-only property of the `web.Event` interface the time (in milliseconds) at which the event was created. `var time = event.timeStamp;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/timeStamp`
(type this)
Property.
The type read-only property of the web.Event
interface returns
string containing the event's type. It is set when the event
constructed and is the name commonly used to refer to the specific
such as click, load, or error.
let eventType = event.type;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/type
Property. The type read-only property of the `web.Event` interface returns string containing the event's type. It is set when the event constructed and is the name commonly used to refer to the specific such as click, load, or error. `let eventType = event.type;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/type`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close