Function addEventListener
- addEventListener(
element:
| HTMLElement
| NodeListOf<HTMLElement>
| HTMLCollectionOf<HTMLElement>
| HTMLElement[],
listeners: Record<
string,
EventListenerOrEventListenerObject
| EventListenerOrEventListenerObject[],
>,
): void Parameters
- element:
| HTMLElement
| NodeListOf<HTMLElement>
| HTMLCollectionOf<HTMLElement>
| HTMLElement[] - listeners: Record<
string,
EventListenerOrEventListenerObject
| EventListenerOrEventListenerObject[],
>
Returns void
void
Add event listener(s) to one or more Node elements