AddEventListener
addEventListener()
is a common BrightSign method that is used to listen for an event.
...
Code Block | ||
---|---|---|
| ||
target.addEventListener(type, listener); |
type
string string: Specifies the type of event to listen forlistener
function: The object to be notified when the event (of the specifiedtype
) happens
...
Code Block | ||
---|---|---|
| ||
target.removeEventListener(type, listener); |
type
string string: Specifies the type of event to listen forlistener
function: The object to be notified when the event (of the specifiedtype
) happens
...