Get the clicked link text in wordpress using javascript
<p>I have website with a side bar links like this</p>

<pre><code>Budget
NAM
Rules
Contacts
</code></pre>

<p>I want the link name 
When user clicks the link for example he clicked (Rules) JavaScript grabs the link name for me further compare it with an if or switch statement and open the specific page the user clicked.</p>
