| Sample: dhtmlxWindows | Attaching dhtmlxGrid | dhtmlxWindows main page |

    <head>
        <!-- attaching a dhtmlxGrid -->
        <script src="../../../dhtmlxGrid/codebase/dhtmlxgrid.js"></script>
        <script src="../../../dhtmlxGrid/codebase/dhtmlxgridcell.js"></script>
        <link rel="stylesheet" type="text/css" href="../../../dhtmlxGrid/codebase/dhtmlxgrid.css">
        <link rel="stylesheet" type="text/css" href="../../../dhtmlxGrid/codebase/skins/dhtmlxgrid_dhx_blue.css">
    </head>

    <script>
        var dhxWins = new dhtmlXWindows();
        ...
        var w1 = dhxWins.createWindow("w1", ...);
        // attaching a dhtmlxGrid
        var grid = w1.attachGrid();</script>