removeEventListener

removeEventListener 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 attribute.

Examples

1

2

3

4

5

6

7

Internal

addEventListener

dispatchEvent

EventTarget

External

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu