title: Global GetThisFileName function in Javascript
body: <p>is it possible to have a global function that gets the file name of the file it is currently executed in? As an example, let's say i have it defined in abc.js, and when i run it in def.js, it returns &quot;def.js&quot;, when i run it in &quot;somefile.js&quot; it returns &quot;somefile.js&quot; etc.</p>