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

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

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