Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js window location relative path

//To get just the relative path of a window location.

const RELATIVE_PATH = window.location.pathname; 
 
PREVIOUS NEXT
Tagged: #js #window #location #relative #path
ADD COMMENT
Topic
Name
9+8 =