Determine HTML page that called a function in an external js file
<p>Is it possible to determine this at runtime?</p>

<p>contents of external.js:</p>

<pre><code>function x() {

  //can i get the path/name of the html file that included this js file?

  //which is test.html

}
</code></pre>

<p>contents of test.html</p>

<p>script src="external.js"</p>
