Sample: dhtmlxMenu Initialization of Context Menu dhtmlxMenu main page
X
 
 
<div id="contextArea"></div>
 
<script>
 
    var menu = new dhtmlXMenuObject("contextArea");
    ...
    menu.renderAsContextMenu();
    
    menu.loadXML("../common/dhtmlxmenu.xml");
</script>