addEventListener
Add an event listener for eventType to the target.
addEventListener( target, eventType, ...eventArgs )
Parameters
- target
{DomEventTarget}
:The object to which to add the listener.
- eventType
{String}
:The event type with which to register.
- eventArgs
{*}
:The arguments which configure the associated event's behavior. This is usually a function event handler.