DHTMLX Docs & Samples Explorer

Index
dhtmlxslider

## Event Handling

The following events are available in dhtmlxSlider:

- onChange Event - occurs after slider's value was changed;
- onSlideEnd Event - occurs when slider's movement ends.

### Attaching Event Handler

The user can add any user-defined handler to any of the available events. To do this, the user can use attachEvent() method that sets the function called when specified event occurs. It has the following parameters:

- evName - name of the event;
- evHandler - user-defined event handler.

              sld.attachEvent(evName, evHandler);

Note: the names of the events are case-sensitive.