get external file source (location) using javascript
<p>I insert an external .js file from another domain. Like this:</p>

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

<p>file.js is always the same, but it can be placed in different domains,</p>

<p>so I need to know what is the source of the file.</p>

<p>For example: file.js is in domain1.com, domain2.com and domain3.com.</p>

<p>If someone insert it like this: <code>&lt;script src="http://domain1.com/file.js" type="text/javascript"&gt;&lt;/script&gt;</code></p>

<p>I want to know that the file is inserted from domain1.com</p>

<p>How to do it?</p>
