Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript how to print working directory

var loc = window.location.pathname;
var dir = loc.substring(0, loc.lastIndexOf('/'));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #print #working #directory
ADD COMMENT
Topic
Name
8+1 =