Possible Duplicate:
JavaScript query string
I'd like to access query variables attached to my script url. So for example:
<script type="text/javascript" src="http://mysite.com/app.js?var1=value1&var2=value2"></script>
In app.js, how do I access the var1 and var2 values?