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

x/deno/ext/web/lib.deno_web.d.ts>Event#preventDefault

A modern runtime for JavaScript and TypeScript.
Go to Latest
method Event.prototype.preventDefault
import { Event } from "https://deno.land/x/deno@v1.29.0/ext/web/lib.deno_web.d.ts";

If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.