Check documentation for the latest version of dhtmlxSuite onTabClick DHTMLX Docs

onTabClick

fires when the user clicks on a tab

void onTabClick(string|number id,string|number lastId);
idstring|numberid of the clicked tab
lastIdstring|numberid of the previously active tab, if any

Example

var myTabbar = new dhtmlXTabBar("parentId");
 
myTabbar.attachEvent("onTabClick", function(id, lastId){
    // your code here
});

Details

Fires both for enabled and disabled tabs, not cancelable.

Back to top