Get DOM element where script tag is
<p>I need to write a script that will use document.write to produce some output, but I need to know what element it is contained, example:</p>

<pre><code>&lt;p&gt;
    paragraph 1
    &lt;script src="test.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;/p&gt;
</code></pre>

<p>I need to get a reference to the p tag...</p>

<p>thanks!</p>
