Answers for "getting the of the url querystring"

2

get url query params js

const urlParams = new URLSearchParams(window.location.search);
const myParam = urlParams.get('myParam');
Posted by: Guest on July-26-2020
0

get url without query string

window.location.href.split('?')[0]
Posted by: Guest on May-16-2021
0

get query params from url javascript

const queryString = window.location.href;
const parameters = new URLSearchParams(queryString);
const value = parameters.get('key');
Posted by: Guest on August-20-2021

Code answers related to "getting the of the url querystring"

Browse Popular Code Answers by Language