Dears,
I want to execute some javascript code when I click on my UltraWebMenu item. How do I register the javascript on runtime.
Can I do like this: MyMenu.Attribute.Add("onClick","MyFunction();"); I have done this in the page load event but does not work. Please show me the correct way to add script attribute so that when I click on the item it will execute the javascript function.
Thanks
Try this:
igmenu_getMenuById('UltraWebMenu1').Events["ItemClick"][0]="UltraWebMenu1_ItemClick";
where UltraWebMenu is the client id of the menu and UltraWebMenu1_ItemClick is the function name.