HTML DOM Document removeEventListener()
HTML DOM Document removeEventListener() Method
The removeEventListener() method is used for removing an event handler from a document.
Syntax:-
Its syntax is:- document.removeEventListener(event, function, capture)
Further Explanation:-
Parameter | Description |
event | Required. The event name is like click and dblclick. |
function | Required. The function to run when the event occurs. |
capture | true - Execute in capturing phase.false - Execute in the bubbling phase. |