Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get-the-current-directory-name-in-javascript

var location = window.location.pathname;
var directoryPath = location.substring(0, location.lastIndexOf("/")+1);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
9+5 =