Sample: dhtmlxLayoutAttach dhtmlxToolbar to Layout's TopdhtmlxLayout main page
X
 
<body>
    <div id="parentId"></div>
</body>
 
<script>
 
    // initialization of the layout
    var dhxLayout = new dhtmlXLayoutObject("parentId", "3L");
    // attaching a toolbar
    var bar = dhxLayout.attachToolbar();
</script>