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