How to get the currently loading script name and the url variable of the script?
<p>I am loading a script using the script embed tag and I want to get the url variables and the loading script name inside the script. Is it possible? For Example,</p>

<pre><code>&lt;script src="test.js?id=12"&gt;&lt;/script&gt;
</code></pre>

<p>Inside test.js is there any way to get the url variable id?</p>

<p>Any help would be appreciated.</p>

<p>Thanks,<br>
Karthik</p>
