WebDataMenu1.ClientEvents.ItemHovered = "WebDataMenu1_ItemHovered"
WebDataMenu1.ClientEvents.ItemHovered = "WebDataMenu1_ItemHovered";
// The client event 'ItemHovered' takes two parameters sender and e // sender is the object which is raising the event // e is the DataMenuItemCancelEventArgs function WebDataMenu1_ItemHovered(sender, e) { //Gets the DataMenuItem object that is hovered var Item = e.getItem(); //Gets the text of the hovered item var ItemText = Item.get_text(); window.status = "Item '" + ItemText + "' hovered."; }