Hi !,
I’ve created a tabbar from HTML and i would like to fire a javascript event when a tab is clicked. I’ve tried adding “onClick” in my div tag but it did not work. I also tried something like this:
tabbar = new dhtmlXTabBar(‘client_tab’,‘top’);
tabbar.setOnSelectHandler(function(idn, ido){
alert(‘Clicked’);
return true;
});
Also did not work since my tab is created from html.
What did i need to add to make it works ?
Thanks !
Hello,
You can use the following method to call tabbars methods:
<div oninit=“someAction()” class=“dhtmlxTabBar” id=“tabbar” …>
…
Where tabbar is the container id.