You all know that the master page in MVC has this:
<nav>
<ul id="menu">
<li id="id1"><%: Html.ActionLink(...)%></li>
<li id="id2"><%: Html.ActionLink(...)%></li>
<li id="id3"><%: Html.ActionLink(...)%></li>
</ul>
</nav>
How to check which tab did the user click? By checking the url or something else?
All of these links go to methods in different controllers.
document.location.href was all I needed.