DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Get URL Parameters
function getURLParameter(name){
return decodeURI(
(RegEXP(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1]
);
}
This function takes the name of your parameter as a string and returns it's value as set in the current URL.





