JavaScript Query String Parsing

 
This will return an array named "GET" that consists of query string variables that can be referenced by the following example:
http://example.com/index.html?id=1001&fname=Ben&lname=Bradley



 



alert("id = " + GET["id"]);



alert("first name = " + GET["fname"]);



alert("last name = " + GET["lname"]);





Comments

Popular posts from this blog

Setup SharePoint 2010

Register CSS to SP Master Page