1// https://testsite.com/users?page=10&pagesize=25&order=asc
2const urlParams = new URLSearchParams(window.location.search);
3const pageSize = urlParams.get('pageSize');
1const queryString = window.location.search;
2const urlParams = new URLSearchParams(queryString);
3const code = urlParams.get('code')
1// Example URL: https://example.com/over/there?name=ferret
2const queryString = window.location.search;
3const urlParams = new URLSearchParams(queryString);
4const parameter_name = urlParams.get('name')
5console.log(parameter_name);