Hello,
I would like to determine the query string of the current window.
I was looking at some example in the Rhino book that used the following syntax:
var qs = location.search.substring(1);
alert(qs);
When I use the above syntax in my script I do not see anything. But my url has alot of stuff after the "?"
I am not sure I undertand what the .substring(1) portion is doing?
Any help is appreciated.
I would like to determine the query string of the current window.
I was looking at some example in the Rhino book that used the following syntax:
var qs = location.search.substring(1);
alert(qs);
When I use the above syntax in my script I do not see anything. But my url has alot of stuff after the "?"
I am not sure I undertand what the .substring(1) portion is doing?
Any help is appreciated.