Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

AddEventListener

addEventListener() is a common BrightSign method that is used to listen for an event.

...

Code Block
languagejs
target.addEventListener(type, listener);
  • type string  string: Specifies the type of event to listen for

  • listener function: The object to be notified when the event (of the specified type) happens 

...

Code Block
languagejs
target.removeEventListener(type, listener);
  • type string  string: Specifies the type of event to listen for

  • listener function:  The object to be notified when the event (of the specified type) happens 

...