Answers for "get url without parameters javascript"

2

get page url without params in javascript

window.location.href.split('?')[0];
Posted by: Guest on June-22-2021
0

get url without parameters javascript

let urlWithOutParameters = window.location.protocol + "//" + window.location.origin + window.location.pathname;
let urlWithParameters = window.location.href;
Posted by: Guest on July-14-2021

Code answers related to "get url without parameters javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language