Wiki  |   Blog  |   Sitemap  |   Search  
Home
JavaScript UI FrameworkReference

Element listener

Element listener supports a subset of the DOM's EventListener interface. It is used to declare event listeners and register them with specific nodes in the DOM.

Members Table

The following table lists the members exposed by the listener object.

Show:
Attributes

Examples

In the given below example, the event click is prevented from propagation and an alert is called with message.
<div xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events">
	<ev:listener event="click" handler="javascript:alert('Propagation stopped!')" propagate="stop" />
</div>