0 votes
in JavaScript by
How do get query string values in javascript?

1 Answer

0 votes
by

You can use URLSearchParams to get query string values in javascript. Let's see an example to get the client code value from URL query string,

const urlParams = new URLSearchParams(window.location.search);
const clientCode = urlParams.get("clientCode");
...