Get querystring variable using javascript

Rajni.Shekhar
Posted by Rajni.Shekhar under JavaScript category on | Points: 40 | Views : 1394
function getQueryString() {
var arrReturn = "";
var queryStr = window.location.search.substring(1,location.search.length);
var arrVal = queryStr.split("&");
alert(arrReturn[1]); //arrReturn[1] will have querystrings.
}

Comments or Responses

Posted by: Self-Innovator on: 4/7/2012 Level:Bronze | Status: [Member] | Points: 10
Awesome Codes.......



Keep Posting...

Login to post response