Sample: dhtmlxWindows Attaching Object and Adjusting dhtmlxWindows main page
X
First Name:
Last Name:
 
<body>
    <div id="form" style="width: 300px; height: 100px;">
        ....
    </div>
</body>
<script>
 
        var dhxWins = new dhtmlXWindows();
    ...
    // attaching object and autoadjusting window's dimension
    dhxWins.window(id).attachObject("form", true);
</script>