decodequery(query)

Spit the query part of a url into an object.

Parameters

- query : the part of the url after the ?. Ex. to get the query part in the browser use window.location.search