Answers for "javascript get variable from url path"

8

javascript get url path

window.location.pathname
Posted by: Guest on June-06-2020
-1

js get url variables

const postID = (new URLSearchParams(window.location.search)).get('post');
Posted by: Guest on February-11-2021

Code answers related to "javascript get variable from url path"

Code answers related to "Javascript"

Browse Popular Code Answers by Language