intempt:html
Usage example
The following JavaScript snippet demonstrates how to listen for the intempt:html event, which is automatically emitted by the auto-tracker for various DOM events. This custom event includes a detail property that provides additional information about the event triggered:
document.addEventListener('intempt:html', (event) => {
const { detail } = event;
const { eventName, target } = detail;
//Your logic here
})
This regular DOM listener event contains a detail property, which is a part of the custom event. The detail object contains:
- eventName: name of the event which was passed to intempt:html event , like "click", "change", etc
- target: HTMLElement target
Updated 8 months ago