Sample: dhtmlxTabbar Add content to TabBar dhtmlxTabbar main page
X
Attach content to TabBar
Clear all tabs



 
<div id="a_tabbar" style="width:400;height:100"></div>
<script>
 
            tabbar=new dhtmlXTabBar("a_tabbar","top");
            tabbar.setImagePath("imgs/");
            tabbar.setSkinColors("#FCFBFC","#F4F3EE");
 
            tabbar.addTab("a1","Tab 1-1","100px");
            tabbar.addTab("a2","Tab 1-2","100px");
            tabbar.addTab("a3","Tab 1-3","100px");
 
            tabbar.setContent("a1","html_1");
            tabbar.setContent("a2","html_2");
            tabbar.setContentHTML("a3","<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.");
</script>