Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/tsc/dts/lib.deno.window.d.ts>removeEventListener

A modern runtime for JavaScript and TypeScript.
Latest
function removeEventListener
import { removeEventListener } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.window.d.ts";

Remove a previously registered event listener from the global scope

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

Parameters

type: K
listener: (this: Window, ev: WindowEventMap[K]) => any
optional
options: boolean | EventListenerOptions

Parameters

type: string
optional
options: boolean | EventListenerOptions