Read URL Query Parameters with JavaScript (jQuery Helper Function)
How to get a value from the URL GET parameters in JavaScript Very often we need values from the URL query string. PHP has $_GET for this, but jQuery has no such function. Below are two ways: the browser API and a small helper function I found online.