EventListener

Availability

BlackBerry Device Software version 4.6 or later

The EventListener object represents an event listener, which is used to listen for and handle events as they occur. EventListener objects are registered on an EventTarget, the node(s) within the DOM that may be impacted by an event. Events may be registered against Node , Window , or XMLHttpRequest . A listener should be removed from the target after it has been used.

Methods

Method name

Description

Support level

Availability

handleEvent()

Called whenever an event occurs the EventListener object was registered to listen for.

DOM Level 2 Events

4.6 or later

Last modified: 2014-03-10



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus