title: Can I find out from a Javascript method, who\which DOM element called me?
body: <pre><code>&lt;a onclick ="foo()" href="bar.html" &gt;Link &lt;/a&gt;
  
  &lt;script&gt;
  
  ...
  function foo(){
    //I want to know the href property of whoever called me.
    //something like this.caller.href ??
  }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>I guess I could just assign all element IDs and then pass my own ID to the JS method I'm calling, but I was looking for a better way.</p>