• Trys to add an event handler for the specified event to the window, body and document

    Parameters

    • eventName: string

      {string} - The name of the event

    • callback: any

      {any} - The callback function that needs to be executed for the given event

    • OptionalevtNamespace: string | string[]

      [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.

    Returns boolean

    • true if the handler was successfully added