How to detect the clicked href URL in JQuery/Javascript
<p>Does anyone know how to detect the clicked href URL in JQuery? For example I have the following links, some is redirect to the new page and some will call to the javascript to expand the div. How can I use the JQuery/Javascript to detect the href if no ID been use.</p>

<pre><code>&lt;a href="www.test.com"&gt;Test 1&lt;/a&gt;
&lt;a href="javascript:test()"&gt;Test 2&lt;/a&gt;
&lt;a href="www.test2.com"&gt;Test 3&lt;/a&gt;
&lt;a href="www.test3.com"&gt;Test 4&lt;/a&gt;
&lt;a href="javascript:test2()"&gt;Test 5&lt;/a&gt; 
</code></pre>
