Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. var $_GET = {};
  2. if(document.location.toString().indexOf('?') !== -1) {
  3. var query = document.location
  4. .toString()
  5. .replace(/^.*?\?/, '')
  6. .replace(/#.*$/, '')
  7. .split('&');
  8.  
  9. for(var i=0, l=query.length; i<l; i++) {
  10. var aux = decodeURIComponent(query[i]).split('=');
  11. $_GET[aux[0]] = aux[1];
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement