import { __event } from "https://deno.land/x/deno@v0.28.0/cli/js/lib.deno_runtime.d.ts";
const { Event } = __event;
Constructors
new
Event(type: string, eventInitDict?: __domTypes.EventInit)Properties
currentTarget: __domTypes.EventTarget
path: __domTypes.EventPath[]
target: __domTypes.EventTarget
readonly
timeStamp: DateMethods
Returns the event’s path (objects on which listeners will be invoked). This does not include nodes in shadow trees if the shadow root was created with its ShadowRoot.mode closed.
event.composedPath();
preventDefault(): void
Cancels the event (if it is cancelable). See https://dom.spec.whatwg.org/#set-the-canceled-flag
event.preventDefault();
stopImmediatePropagation(): void
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).
event.stopImmediatePropagation();
stopPropagation(): void
Stops the propagation of events further along in the DOM.
event.stopPropagation();