Text of the clicked link
<pre><code>&lt;ul class="Buttons"&gt;
    &lt;li&gt;&lt;a href="#" onclick="myFunc(); return false;"&gt;Accept&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#" onclick="myFunc(); return false;"&gt;Reject&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#" onclick="myFunc(); return false;"&gt;On Hold&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#" onclick="myFunc(); return false;"&gt;Completed&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>In my script.js:</p>

<pre><code>var myFunc = function () {
    // I want to get the Text of the link e.g. if the first list item link is
    // clicked, store "Accept" in a variable.
};
</code></pre>

<p>How can I achieve this?</p>
