showing results for - "parse data from url javascript"
Kessy
28 Apr 2016
1//   https://www.example.com?name=n1&name=n2
2let params = new URLSearchParams(location.search);
3params.get('name') //    => "n1"
4params.getAll('name') //    => ["n1", "n2"]
5// SOURCE : https://stackoverflow.com/questions/814613/how-to-read-get-data-from-a-url-using-javascript
6// REPLY : Franklin Yu