| Sample: dhtmlxWindows | Attaching dhtmlxTree | dhtmlxWindows main page |

    <head>
        <!-- attaching a dhtmlxTree -->
        <script src="../../../dhtmlxTree/codebase/dhtmlxtree.js"></script>
        <link rel="stylesheet" type="text/css" href="../../../dhtmlxTree/codebase/dhtmlxtree.css">
    </head>

    <script>
        var dhxWins = new dhtmlXWindows();
        ...
        var w1 = dhxWins.createWindow("w1", ...);
        // attaching a dhtmlxTree
        var tree = w1.attachTree(0);</script>