Development – Leet 4 Life

Software Development Code Samples and More

Skip to: Content | Sidebar | Footer

Category: JavaScript

Access Query String values with JavaScript

19 December, 2012 | JavaScript | By: Michael Adams

I was looking for a way to access query string values with javascript. I stumbled across a couple of articles that pointed me in the right direction, but unfortunately I forgot to bookmark them. I will try to find them again and provide a link to provide them the proper credit. In the meantime here is the implementation: This code parses through the URI components and uses a regular expression to pull out the name value pairs that are contained within and then returns it as a collection of the query strings and their values. This is one of the [Read More…]