Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method Event.prototype.preventDefault
import { Event } from "https://deno.land/x/tl_log@0.1.2/examples/deploy.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.