Liking cljdoc? Tell your friends :D

web.event.Event

The Event interface represents an event which takes place in DOM.

The Event interface represents an event which takes place in
DOM.
raw docstring

bubblescljs

(bubbles this)

Property.

The bubbles read-only property of the web.event.Event interface whether 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.Event` interface
whether 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`
sourceraw docstring

cancel-bubblecljs

(cancel-bubble this)

Property.

The cancelBubble property of the web.event.Event interface a historical alias to Event.stopPropagation(). Setting its to true before returning from an event handler prevents propagation the event. In later implementations, setting this to false does See Browser compatibility for 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.Event` interface
a historical alias to `Event.stopPropagation()`. Setting its
to true before returning from an event handler prevents propagation
the event. In later implementations, setting this to false does
See Browser compatibility for details.

`event.cancelBubble = bool;
var bool = event.cancelBubble;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelBubble`
sourceraw docstring

cancelablecljs

(cancelable this)

Property.

The cancelable read-only property of the web.event.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.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`
sourceraw docstring

composedcljs

(composed this)

Property.

The read-only composed property of the web.event.Event interface a js.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.Event` interface
a `js.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`
sourceraw docstring

composed-pathcljs

(composed-path this)

Method.

The composedPath() method of the web.event.Event interface the 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 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.Event` interface
the 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 `ShadowRoot.mode` closed.

`var composed = Event.composedPath();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath`
sourceraw docstring

constructorcljs

Constructor.

The Event() constructor creates a new web.event.Event.

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/Event

Constructor.

The Event() constructor creates a new `web.event.Event`.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/Event`
sourceraw docstring

create-eventcljs

(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.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.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`
sourceraw docstring

current-targetcljs

(current-target this)

Property.

The currentTarget read-only property of the web.event.Event identifies the current target for the event, as the event traverses DOM. It always refers to the element to which the event handler been attached, as opposed to 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.Event`
identifies the current target for the event, as the event traverses
DOM. It always refers to the element to which the event handler
been attached, as opposed to `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`
sourceraw docstring

default-preventedcljs

(default-prevented this)

Property.

The defaultPrevented read-only property of the web.event.Event returns a js.Boolean indicating whether or not 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.Event`
returns a `js.Boolean` indicating whether or not `Event.preventDefault()`
called on the event.

`var defaultWasPrevented = event.defaultPrevented;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/defaultPrevented`
sourceraw docstring

event-phasecljs

(event-phase this)

Property.

The eventPhase read-only property of the web.event.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.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`
sourceraw docstring

explicit-original-targetcljs

(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`
sourceraw docstring

get-prevent-defaultcljs

(get-prevent-default this & args)

Method.

Non-standard. Returns the value of Event.defaultPrevented. Use instead.

Method.

Non-standard. Returns the value of Event.defaultPrevented. Use
instead.
sourceraw docstring

init-eventcljs

(init-event this & args)

Method.

The Event.initEvent() method is used to initialize the value an event created using Document.createEvent().

`event.initEvent(type, bubbles, cancelable);

type Is a web.dom.DOMString defining the type of event. bubbles Is a js.Boolean deciding whether the event should bubble up through the event chain or not. Once set, the read-only property Event.bubbles will give its value. cancelable Is a js.Boolean defining whether the event can be canceled. Once set, the read-only property 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 `event` created using `Document.createEvent()`.

`event.initEvent(type, bubbles, cancelable);


type
Is a `web.dom.DOMString` defining the type of event.
bubbles
Is a `js.Boolean` deciding whether the event should bubble up through the event chain or not. Once set, the read-only property `Event.bubbles` will give its value.
cancelable
Is a `js.Boolean` defining whether the event can be canceled. Once set, the read-only property `Event.cancelable` will give its value.`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/initEvent`
sourceraw docstring

is-trustedcljs

(is-trusted this)

Property.

The isTrusted read-only property of the web.event.Event interface a js.Boolean that is true when the event was generated by a action, and false when the event was created or modified by a or dispatched via 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.Event` interface
a `js.Boolean` that is true when the event was generated by a
action, and false when the event was created or modified by a
or dispatched via `EventTarget.dispatchEvent()`.

`var eventIsTrusted = event.isTrusted;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/isTrusted`
sourceraw docstring

ms-convert-urlcljs

(ms-convert-url this file target-type target-url)

Method.

The msConvertURL method instructs the HTML paste operation on to modify the src attribute that corresponds to each file in clipboardData.files collection, allowing otherwise inaccessible to be converted to blob or data URIs.

var retVal = DragEvent.msConvertURL(file, targetType, targetURL);

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/msConvertURL

Method.

The msConvertURL method instructs the HTML paste operation on
to modify the src attribute that corresponds to each file in
clipboardData.files collection, allowing otherwise inaccessible
to be converted to blob or data URIs.

`var retVal = DragEvent.msConvertURL(file, targetType, targetURL);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/msConvertURL`
sourceraw docstring

original-targetcljs

(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`
sourceraw docstring

prevent-defaultcljs

(prevent-default this)

Method.

The web.event.Event interface's preventDefault() method tells user agent that if the event does not get explicitly handled, default 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.Event` interface's preventDefault() method tells
user agent that if the event does not get explicitly handled,
default 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`
sourceraw docstring

return-valuecljs

(return-value this)

Property.

The web.event.Event property returnValue indicates whether default action 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.Event` property returnValue indicates whether
default action 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`
sourceraw docstring

scopedcljs

(scoped this)

Property.

A Boolean indicating whether the given event will bubble across the shadow root into the standard DOM. This property has been to composed.

Property.

A Boolean indicating whether the given event will bubble across
the shadow root into the standard DOM. This property has been
to composed.
sourceraw docstring

set-cancel-bubble!cljs

(set-cancel-bubble! this val)

Property.

The cancelBubble property of the web.event.Event interface a historical alias to Event.stopPropagation(). Setting its to true before returning from an event handler prevents propagation the event. In later implementations, setting this to false does See Browser compatibility for 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.Event` interface
a historical alias to `Event.stopPropagation()`. Setting its
to true before returning from an event handler prevents propagation
the event. In later implementations, setting this to false does
See Browser compatibility for details.

`event.cancelBubble = bool;
var bool = event.cancelBubble;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelBubble`
sourceraw docstring

set-explicit-original-target!cljs

(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`
sourceraw docstring

set-original-target!cljs

(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`
sourceraw docstring

set-return-value!cljs

(set-return-value! this val)

Property.

The web.event.Event property returnValue indicates whether default action 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.Event` property returnValue indicates whether
default action 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`
sourceraw docstring

set-scoped!cljs

(set-scoped! this val)

Property.

A Boolean indicating whether the given event will bubble across the shadow root into the standard DOM. This property has been to composed.

Property.

A Boolean indicating whether the given event will bubble across
the shadow root into the standard DOM. This property has been
to composed.
sourceraw docstring

set-src-element!cljs

(set-src-element! this val)

Property.

Event.srcElement is a proprietary alias (implemented in Internet for the standard 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 `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`
sourceraw docstring

set-target!cljs

(set-target! this val)

Property.

The target property of the web.event.Event interface is a reference the object that dispatched the event. It is different from 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.Event` interface is a reference
the object that dispatched the event. It is different from `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`
sourceraw docstring

set-time-stamp!cljs

(set-time-stamp! this val)

Property.

The timeStamp read-only property of the web.event.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.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`
sourceraw docstring

src-elementcljs

(src-element this)

Property.

Event.srcElement is a proprietary alias (implemented in Internet for the standard 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 `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`
sourceraw docstring

stop-immediate-propagationcljs

(stop-immediate-propagation this)

Method.

The stopImmediatePropagation() method of the web.event.Event prevents 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.Event`
prevents other listeners of the same event from being called.

`event.stopImmediatePropagation();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/stopImmediatePropagation`
sourceraw docstring

stop-propagationcljs

(stop-propagation this)

Method.

The stopPropagation() method of the web.event.Event interface further propagation of the current event in the capturing and phases.

event.stopPropagation();

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation

Method.

The stopPropagation() method of the `web.event.Event` interface
further propagation of the current event in the capturing and
phases.

`event.stopPropagation();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation`
sourceraw docstring

targetcljs

(target this)

Property.

The target property of the web.event.Event interface is a reference the object that dispatched the event. It is different from 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.Event` interface is a reference
the object that dispatched the event. It is different from `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`
sourceraw docstring

time-stampcljs

(time-stamp this)

Property.

The timeStamp read-only property of the web.event.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.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`
sourceraw docstring

typecljs

(type this)

Property.

The type read-only property of the web.event.Event interface a 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.Event` interface
a 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`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close