DHTMLX Docs & Samples Explorer

Inner Closing

This sample demontrates how to close a window from attached URL.
Source
<link rel="stylesheet" type="text/css" href="../../codebase/dhtmlxwindows.css">
<link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxwindows_dhx_skyblue.css">
<script src="../../codebase/dhtmlxcommon.js"></script>
<script src="../../codebase/dhtmlxwindows.js"></script>
 
<script src="../../codebase/dhtmlxcontainer.js"></script>
 
<div>
This sample demontrates how to close a window from attached URL.
</div>
<div id="winVP" style="position: relative; height: 500px; border: #cecece 1px solid; margin: 10px;"></div>
<script>
var dhxWins,
win;
function doOnLoad() {
    dhxWins = new dhtmlXWindows();
    dhxWins.setImagePath("../../codebase/imgs/");
    dhxWins.enableAutoViewport(false);
    dhxWins.attachViewportTo("winVP");
    win = dhxWins.createWindow("w1", 20, 30, 320, 200);
    win.setText("dhtmlxWindow");
    win.attachURL("../common/inner_close_url.html?etc=" + new Date().getTime());
}
</script>