Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/tsc/dts/lib.webworker.d.ts>dispatchEvent

A modern runtime for JavaScript and TypeScript.
Latest
function dispatchEvent
import { dispatchEvent } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.webworker.d.ts";

Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

MDN Reference

Returns

boolean

Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

MDN Reference

Returns

boolean