How do I identify where a javascript file is currently being loaded from?
<p>Say I have a reference to a javascript file:</p>

<pre><code>&lt;script type="text/javascript" src="http://blah.com/js/count.js"&gt;&lt;/script&gt;
</code></pre>

<p>with the contents of count.js:</p>

<pre><code>alert("This script is loading from:" + url);
</code></pre>

<p>How do I identify the value that should go into the url variable, from inside of count.js?</p>
