dhtmlxMenu onclick not working with Chrome

I have the following in internet explorer and it woks fine.

menu.attachEvent("onClick",function(id){var url = menu.getUserData(id,"url");url = url.replace("%26", "&");location.href(url)});

In Google Chrome though it seems to ignore this completely.
I’ve tried changing onClick to onMousedown but still no luck

I read a couple of places to use onClick("do this","",this) and put “this” (sans quotes) at the end but using attachEvent I cannot figure how to use that

Someone help please?

We have not recreated the problem locally. Sample dhtmlxMenu/samples/01_init/05_dynamic_loading.html , we have added menu.attachEvent(“onClick”,function(id){alert(id)}) and event is fired in Chrome for items without subitems.