//Javasript alone this will cause security problems //You definitely can do it on server with nodejs var fs = require("fs"); fs.mkdir("./path/",callback);