fayazara
6 months ago

getUrlParameters in Javascript

Simply use this line to get query parameters from url in Javascript

let urlParams = new URLSearchParams(window.location.search.substring(1)); let value = urlParams.get("query");

Do you have any comment on this tricks? then let the author know about that. comment here