Over a million developers have joined DZone.

Javascript Getparams

DZone's Guide to

Javascript Getparams

· ·
Free Resource
similar to JavaScript GetVars Array and Parse GetVars with JavaScript this fetches all the get variables with corresponding values.

function getparams(s){
  a = s.match(/[^&?=]*=[^&?=]*/g);
  r = new Array();
  for (i=0; i

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}