Sys.UI.DomEvent addHandler Method
Provides a method to add a DOM event handler to the DOM element that exposes the event. This member is static and can be invoked without creating an instance of the class.
Sys.UI.DomEvent.addHandler(element, eventName, handler, autoRemove);
Use the addHandler method to add a DOM event handler to the element that exposes the event. The eventName parameter should not include the "on" prefix. For example, specify "click" instead of "onclick".
Note
|
|---|
|
Do not use the addHandler method for error events. Error events do not have the same signature as DOM events, and their signatures are not consistent. You must bind error events manually. |
This method can be accessed through the $addHandler shortcut method.
Show:
Note