Control.addEvent

Syntax

addEvent(elem:HTMLElement, eventName: String, handler: Function, fixEv: Boolean)

Parameters

elem. DOM node to subscribe to event.

eventName. Event name.

handler. Event handler.

fixEv. Determines whether to fire fixEvent. If parameter value is set to True, the fixEvent is fired. By default the property is set to True.

Description

The addEvent method adds event handler to DOM node.

Example

The example of method use is given in description of the Control.removeEvent method.

See also:

Control