Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get url without parameters javascript

let urlWithOutParameters = window.location.protocol + "//" + window.location.origin + window.location.pathname;
let urlWithParameters = window.location.href;
 
PREVIOUS NEXT
Tagged: #url #parameters #javascript
ADD COMMENT
Topic
Name
5+6 =