Find the tag JavaScript is running in
<p>Generating HTML source on backend, I am using separate independent widgets.</p>

<p>I am simply including pieces of markup like this to the resulting HTML output.</p>

<pre><code> &lt;div&gt;
     I want to work with this DOM element
     &lt;script&gt;
          new Obj(/*but I can't get this &lt;div&gt; as a parameter! */);
     &lt;/script&gt;
 &lt;/div&gt;
</code></pre>

<p>I'm looking for a way to find the DOM element in which the <code>obj</code> is created (Without any unique IDs). This would add flexibility to my app and speed up the development. But is that technicaly possible in JavaScript?</p>
