System Documentation
    Preparing search index...
    • Adds an event listener that is removed by the next call to ResetPageListeners.

      Type Parameters

      • K extends keyof HTMLElementEventMap

      Parameters

      • target: HTMLElement | null

        The element to listen on. Nothing happens if the element does not exist.

      • type: K

        The event type.

      • handler: (event: HTMLElementEventMap[K]) => void

        The function to run when the event occurs.

      Returns void