Parse dane z JavaScript URL

//   https://www.example.com?name=n1&name=n2
let params = new URLSearchParams(location.search);
params.get('name') //    => "n1"
params.getAll('name') //    => ["n1", "n2"]
// SOURCE : https://stackoverflow.com/questions/814613/how-to-read-get-data-from-a-url-using-javascript
// REPLY : Franklin Yu
Haribo27