js get query params from any url code example
Example: js get query param
const queryString = window.location.search;
const parameters = new URLSearchParams(queryString);
const value = parameters.get('key');
const queryString = window.location.search;
const parameters = new URLSearchParams(queryString);
const value = parameters.get('key');