// Example URL: https://example.com/over/there?name=ferret const queryString = window.location.search; const urlParams = new URLSearchParams(queryString); const parameter_name = urlParams.get('name') console.log(parameter_name);