Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var $_GET = {};
- if(document.location.toString().indexOf('?') !== -1) {
- var query = document.location
- .toString()
- .replace(/^.*?\?/, '')
- .replace(/#.*$/, '')
- .split('&');
- for(var i=0, l=query.length; i<l; i++) {
- var aux = decodeURIComponent(query[i]).split('=');
- $_GET[aux[0]] = aux[1];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement