Is there a way to get the DOM element that contained the inline JS script that called a function?
<p>For example  </p>

<pre><code>&lt;script&gt;
function foo(){...}
&lt;/script&gt;

&lt;div&gt;&lt;script&gt;foo();&lt;/script&gt;&lt;/div&gt;
&lt;span&gt;&lt;script&gt;foo();&lt;/script&gt;&lt;/span&gt;
</code></pre>

<p>and I wanted to have foo return "abc" when called from a div, return "123" when called from a span.  </p>

<p>Is this possible?</p>
