function doOnLoad(){
menu= new dhtmlXMenuObject("divMenu","dhx_skyblue");
menu.loadXML("../___xml/menu.xml");
menu.attachEvent('onClick',menuAct);
}
function menuAct(id){
console.log('Ur clicked menu with id : '+id);
}
May be you put function in incorrect places?
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan