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,

```
<script src="test.js?id=12"></script>

```

Inside test.js is there any way to get the url variable id?

Any help would be appreciated.

Thanks,  

Karthik