Recent Changes - Search:

Administrators

Developers

Articles

Cookbook

edit

attachEvent method

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

Syntax
widget.attachEvent(sEventName, function_name);
ParameterssEventName : Required. The name of the event to handle.
function_name : Required. A reference to the handler function.
Returns-

Example


Page last modified on January 18, 2008, at 01:51 PM