API DOCS
Function: addEvent
function addEvent($sTarget,$sEvent,$sScript)
Parameters:
sTarget
(string) The id of the element that contains the event.
sEvent
(string) The name of the event.
sScript
(string) The javascript to execute when the event is fired.
Returns:
object
The object.
Note:
This function is depreciated and will be removed in a future version.Use setEvent instead.
