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=Bradleyalert("id = " + GET["id"]);
alert("first name = " + GET["fname"]);
alert("last name = " + GET["lname"]);
Comments
Post a Comment