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