Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
function removeEventListener
import { removeEventListener } from "https://deno.land/x/tl_log@0.1.2/examples/deploy.d.ts";

Remove a previously registered event listener from the global scope

const lstnr = () => { console.log('hello'); };
addEventListener('load', lstnr);
removeEventListener('load', lstnr);

Parameters

type: string
optional
options: boolean | EventListenerOptions | undefined