returns id of the active tab
var myTabbar = new dhtmlXTabBar("parentId"); // get active tab var actvId = myTabbar.getActiveTab();