Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Value from location search
- */
- var regex = /[?&]([^=#]+)=([^&#]*)/g,
- url = window.location.href,
- params = {};
- while(match = regex.exec(url)) {
- params[match[1]] = match[2];
- }
- console.log([params]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement