@lesjoursfr/browser-tools
    Preparing search index...

    Function on

    • Set an event listener on every node. Events can be separated by a space. For example, "click mouseover" will set the event listener on both "click" and "mouseover" events. Events can also have a namespace. For example, "click:namespace" will set the event listener on the "click" event with the namespace "namespace". The namespace can be used to remove the event listener later. Namespace can't contain a ":". For example, "click:namespace1:namespace2" set the event listener on the "click" event with the namespace "namespace1".

      Parameters

      • nodes: Window | Document | HTMLElement | NodeListOf<HTMLElement>
      • events: string
      • handler: EventListenerOrEventListenerObject

      Returns void