showing results for - "javascript how to print working directory"
Emilia
26 Sep 2017
1var loc = window.location.pathname;
2var dir = loc.substring(0, loc.lastIndexOf('/'));
3