Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

A modern runtime for JavaScript and TypeScript.
Go to Latest
function dispatchEvent
import { dispatchEvent } from "https://deno.land/x/deno@v1.28.1/cli/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.

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.

Returns

boolean