<!-- add the following style <style> html, body { width: 100%; height: 100%; margin: 0px; padding: 0px; overflow: hidden; } </style> --> <input type="button" onclick="openLayout();" value="Open Header/Footer Layout Demo"> <script></script>// init layout; // var dhxLayout = new dhtmlXLayoutObject(document.body, "3L"); function openLayout() { window.open("inc/header_footer.html"); }