how can you determine location of <script> tag from inside said tag?
<p>I am trying to figure out the location of the script tag the current javascript is running in.  These are dynamically generated tags.... code snippet: </p>

<pre><code>&lt;html&gt;
&lt;head&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
    &lt;title&gt;where am i?&lt;/title&gt;
  &lt;script type="text/javascript" charset="utf-8"&gt;
    function byId(id) {
      return document.getElementById(id);
    }

    function create_script(el, code) {
      var script = document.createElement("script");
      script.type = "text/javascript";
      script.text = code;
      el.appendChild(script);
    }
  &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
  &lt;div id="find_me_please"&gt;&lt;/div&gt;
  &lt;script&gt;
    create_script(byId("find_me_please"), "alert('where is this code located?');");
  &lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Thanks!</p>

<p><strong>UPDATE:</strong></p>

<p>So I do not think my initial example was as clear as I had thought.  </p>

<p>What is really going on is that I need to determine from <em>inside</em> a src'd, dynamically inserted javascript file where it is located in the DOM. </p>
