Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno/cli/js/dom_types.ts>Event

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface Event
import { type Event } from "https://deno.land/x/deno@v0.30.0/cli/js/dom_types.ts";

Properties

readonly
type: string
target: EventTarget | null
currentTarget: EventTarget | null
eventPhase: number
readonly
bubbles: boolean
readonly
cancelable: boolean
readonly
defaultPrevented: boolean
readonly
composed: boolean
isTrusted: boolean
readonly
timeStamp: Date
dispatched: boolean
readonly
initialized: boolean
inPassiveListener: boolean
cancelBubble: boolean
cancelBubbleImmediately: boolean
path: EventPath[]
relatedTarget: EventTarget | null

Methods

composedPath(): EventPath[]
stopPropagation(): void
stopImmediatePropagation(): void
preventDefault(): void