Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

removeEventListener

Description

The removeEventListener EventTarget for JS removes the event listener in target’s event listener list with the same type, callback, and options.

Syntax

target.removeEventListener(type, callback [, options])

Parameters

type

The type of event.

callback

The callback that will be invoked when the event is dispatched.

options

Allows setting the capture, once, passive, and signal attributes.

Examples

1 · type callback · event

2 · type callback · event argument

3 · type callback · mouseevent

4 · type callback · mouseevent argument

5 · options · false

6 · options · true

7 · options · capture · false

8 · options · capture · true

9 · options · once · false

10 · options · once · true

11 · options · passive · false

12 · options · passive · true

13 · options · signal

addEventListener

dispatchEvent

EventTarget

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu