CustomEventListener Op
Add a custom event listener
Summary (oneliner)
Adds a custom event listener to the HTML DOM element.
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Caniuse query
Inputs
The HTML DOM element to add the listener to
If multiple elements register an event listener, setting Use Capture
will make sure the listener will be called before the regular (bubble) listeners. For more infos read here: javascript.info/bubbling-and-capturing.
If set the default browser action for the event will not be executed. See developer.mozilla.org.
Stops other elements’ event listeneres from getting called. See developer.mozilla.org.
Outputs
Trigger when the event occured
The event object contains details about the event