javascript get query string parameter url search parameter code example
Example: get url query params js
const urlParams = new URLSearchParams(window.location.search);
const myParam = urlParams.get('myParam');
const urlParams = new URLSearchParams(window.location.search);
const myParam = urlParams.get('myParam');