DHTMLX Docs & Samples Explorer

### Clear All

Source

    <link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxmenu_dhx_skyblue.css">
    <script src="../../codebase/dhtmlxcommon.js"></script>
    <script src="../../codebase/dhtmlxmenu.js"></script>

    <div style="height: 250px;"><div id="menuObj"></div></div>
    <input type="button" value="Load XML 1" onclick="loadXML('');">
    <input type="button" value="Load XML 2" onclick="loadXML('2');">

    <br>
    <script>var menu;
    var menuBusy = true;
    function initMenu() {
        menu = new dhtmlXMenuObject("menuObj");
        menu.setIconsPath("../common/imgs/");
        menu.attachEvent("onXLE", function() {
            menuBusy = false;
        });
        menu.loadXML("../common/dhxmenu.xml?etc=" + new Date().getTime());
    }
    function loadXML(v) {
        if (menuBusy)
            return;
        menuBusy = true;
        menu.clearAll();
        menu.setIconsPath("../common/imgs" + v + "/");
        menu.loadXML("../common/dhxmenu" + v + ".xml?etc=" + new Date().getTime());
    }</script>