The attachEvent is used for assigning a special function called a handler, that gets called when a specific event is fired. QuiX supports two kinds of event types; DOM events and custom events. Supported DOM events are:
onmousedown, onmouseup, onmousemove, onmouseover, onmouseout, onkeypress, onkeyup, onclick, ondblclick, oncontextmenu, onscroll
The supported custom events for every widget are:
onload, onresize
The onload handler is called once immediately after the widget is placed on the document. The resize handler is called everytime the dimensions of a widget change.
Syntax | widget.attachEvent(sEventName, function_name); |
---|---|
Parameters | sEventName : Required. The name of the event to handle. function_name : Required. A reference to the handler function. |
Returns | - |