SHARE
TWEET

Untitled

a guest Dec 8th, 2013 44 Never
  1.         function getParameterByName(name) {
  2.                 name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
  3.                 var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
  4.                 results = regex.exec(location.search);
  5.                 return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
  6.         }
RAW Paste Data
Top