Tomorrow Member
Posts : 1 Join date : 2011-05-14
| Subject: Obtain JS Requested Query String Sat May 14, 2011 7:33 pm | |
| Hey I need help to obtain the requested javascript's query string. Example: - Code:
-
script type="text/javascript" src="script.js?v=123"></script>
How can I use that query string inside script.js for example like - Code:
-
var v = 'The code to get the query fragment'; alert(v); // alerts '123'
Thank you. |
|
Knowledge Member
Posts : 21 Join date : 2011-03-09
| Subject: Re: Obtain JS Requested Query String Sat May 14, 2011 7:34 pm | |
| |
|