First add the css class to the menu:
<asp:Menu ID="_mainMenu" runat="server" CssClass="MyMenu" ...
Then you can use this jQuery code to handle the click event of all the links inside:
<script type="text/javascript"> $(function() { $(".MyMenu a").each(function(index) { $(this).click(function() { alert($(this).attr("href")); return false; }); }); }); </script>
In the above example, a warning with a href link will be displayed when clicked, you can do whatever you want. It will also cancel the link, just delete "return false"; to redirect the link as usual.
source share