The following events are available in dhtmlxTabbar:
The user can add any user-defined handler to any of the available events. To do this, the user can use attachEvent() method with the following parameters:
tabbar.attachEvent(evName, evHandler);
Several handlers can be attached to one and the same event, and all of them will be executed. Note: the names of the events are case-sensitive.
There is a simple way of removing an event-handler:
var id = tabbar.attachEvent(evName, evHandler); //... tabbar.detachEvent(id); // unique id of the event handler
Parameter of detachEvent is the event's ID , it is the value, which was returned by related attachEvent command.