Function addFocusListener

  • Add a listener to each item in the list of elements

    Parameters

    • elements: HTMLElement[]
    • listener: ((event: Event) => unknown) | (() => unknown)

    Returns void