-
Couldn't load subscription status.
- Fork 0
queryStringHandler toObject
Mike Byrne edited this page Jan 25, 2022
·
2 revisions
Takes the passed URL, or the current browser URL and returns an object of query string parameters
- nothing
- url - optional - if not passed, helper looks at browser URL
- object of parameters, eg:
{
param1: 'param1value',
param2: 'param2value'
}var params = turnQueryStringToObject();http://stevenbenner.com/2010/03/javascript-regex-trick-parse-a-query-string-into-an-object/