A tiny library for decode value of the query string using JS
add this script
<script src="https://cdn.jsdelivr.net/gh/guganems/js-parse-query-string/app.js"></script>
assuming the url
is:
https://somesite.com/index.php?name=guga
to retrieve the parameter guga
, you should use:
let url = new Url();
console.log(url.name);