Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getQuerystringParamByName(name) {
- var regexS, regex, results;
- regexS = "[\\?&]" + name + "=([^&#]*)";
- regex = new RegExp(regexS);
- results = regex.exec(location.href);
- if (results === null) {
- return null;
- } else {
- return (results[1] !== '') ? results[1] : null;
- }
- }
Add Comment
Please, Sign In to add comment