How pass reference to "this" on href javascript function?
<p>I have a link with this href:</p>

<pre><code>href="javascript:foo(this);"
</code></pre>

<p>when I call it "this" points to the window object, not the link. How do I pass a reference to the link?</p>

<p><a href="http://jsfiddle.net/xMGKz/" rel="nofollow">http://jsfiddle.net/xMGKz/</a></p>

<p><strong>Edit note</strong>: The question is how to pass with href, not generally - I know about onclick!</p>

<p>And not copying id and make getElementById, that's not "this", it's DOM search for certain element, no need to make it inline in HTML.</p>

<p>The anwer is: not possible.</p>
