How do you reference a passed query string in your code?
The query string portion of the URL (Uniform Resource Locator) of the web page consists of a set of name-value pairs representing the search parameters. It is stored in the search property of the Location object. The query string starts with the question mark which can be removed using the length property and substring() method of the String object. The name-value pairs are separated by ampersand (&). Each and every name-value pair can be extracted by calling the split() method of String object and passing '&' as parameter.
The passed query string is referenced using the search property of the Location object and parsed using the length property and substring() and split() methods of the String object.