How can I get URL of JS file in same JS file?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/984510/what-is-my-script-src-url">What is my script src URL?</a>  </p>
</blockquote>

<p>I have situation:</p>

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

<p>In file <strong>some.js</strong> I need to know full path of same file <strong>some.js</strong>, eq. <strong>"http://server/some.js"</strong>. How can I do this?</p>

<p>I can't change HTML code (clients are including JS file).</p>
