function ShowContextMenu() { var obj = window.event.srcElement; if(obj.tagName == "SPAN") { showhide('ctl00_menuHover','true',obj.tagName);//function to show/hide menu } }
<asp:treeview id="trvMenu" runat="server" datasourceid="SiteMapDataSource1" xmlns:asp="#unknown"> CollapseImageToolTip="Collapse" ExpandImageToolTip="Expand" ShowLines="True" oncontextmenu="Javascript:ShowContextMenu();return false;"> </asp:treeview>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)