DHTMLX Docs & Samples Explorer

### Load data in tabbar through iframes

Source

    <link rel="STYLESHEET" type="text/css" href="../../codebase/dhtmlxtabbar.css">
    <script  src="../../codebase/dhtmlxcommon.js"></script>
    <script  src="../../codebase/dhtmlxtabbar.js"></script>

    <div id="a_tabbar" style="width:395px; height:390px;"/>
    <script>tabbar = new dhtmlXTabBar("a_tabbar", "top");
    tabbar.setSkin('dhx_skyblue');
    tabbar.setImagePath("../../codebase/imgs/");
    tabbar.addTab("a1", "Google", "100px");
    tabbar.addTab("a2", "Yahoo", "100px");
    tabbar.addTab("a3", "DHTMLX", "100px");
    tabbar.setHrefMode("iframes-on-demand");
    tabbar.setContentHref("a1", "http://google.com");
    tabbar.setContentHref("a2", "http://yahoo.com");
    tabbar.setContentHref("a3", "http://dhtmlx.com");
    tabbar.setTabActive("a1");
    tabbar.attachEvent("onSelect", function(id) {
        if (tabbar.cells(id)._frame);
        alert(tabbar.cells(id)._frame.contentWindow.location);
        return true;
    });</script>