JavaScript get URL parameter array

From , 4 Years ago, written in JavaScript, viewed 51 times.
URL https://pastebin.vip/view/c8afe805
  1. function getUrlVars() {
  2.         var map = {};
  3.         var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
  4.                 map[key] = value;
  5.         });
  6.         return map;
  7. }

Reply to "JavaScript get URL parameter array"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website