Detach DOM event handler from element to prevent memory leaks.
- Element from which the event is being detached.
- The name of the event, without an 'on' prefix.
- The event handler being detached.
- Set this to
trueif the event was being captured in the bubbling phase; otherwise, use
falseor leave this parameter empty.
The fourth argument, useCapture, is optional and will default to false.