🔰remove handler
JS ⟩ browser ⟩ event ⟩ handler ⟩ register ⟩ remove
If you want to remove a capturing event handler, you must also pass true as the third argument to removeEventListener().
To remove a handler we need exactly the same function as was assigned.
Last updated
Was this helpful?