Class: addListener

addListener(target, type, listener, options)

Used to create event listeners

Constructor

new addListener(target, type, listener, options)

Parameters:
Name Type Description
target string the name of the element
type type
listener string listens for event activation
options Object if the event does not get explicitly handled, its default action should not be taken as it normally would be
Source: