<body> <div id="parentId"></div> </body> <script> // initialization through objectId var dhxLayout = new dhtmlXLayoutObject("parentId", "3L"); // OR // initialization through object var obj = document.getElementById("parentId"); var dhxLayout = new dhtmlXLayoutObject(obj, "3L"); </script>