Function attachEvent

  • Binds the specified function to an event, so that the function gets called whenever the event fires on the object

    Parameters

    • obj: any

      Object to add the event too.

    • eventNameWithoutOn: string

      String that specifies any of the standard DHTML Events without "on" prefix and optional (dot "." prefixed) namespaces "click" "click.mynamespace".

    • handlerRef: any

      Pointer that specifies the function to call when event fires

    • Optional useCapture: boolean

      [Optional] Defaults to false

    Returns boolean

    True if the function was bound successfully to the event, otherwise false

Generated using TypeDoc