javascript print working directory code example
Example: javascript how to print working directory
var loc = window.location.pathname;
var dir = loc.substring(0, loc.lastIndexOf('/'));
var loc = window.location.pathname;
var dir = loc.substring(0, loc.lastIndexOf('/'));