Possible Duplicate:
How can I get query string values?
Convert URL parameters to a javascript object
In my application, there is a page where I need to retrieve the page url (from the browser) and then extract all the query parameters from it.
Is there a quick way to do that ? I will prefer not using a jQuery plugin since it is not easy to comprehend and makes the application dependent on the plugin.
I know, I am asking 2 questions in one but is there a way to store them in a Set so that it can be accessed as a list of key-value pairs ?