0

How to create folders with JS:

    var sFolderPath = 'images';
    var fso = new ActiveXObject('Scripting.FileSystemObject');
    if (!fso.FolderExists(sFolderPath)) {
        fso.CreateFolder(retVal);
        return;
        }

I got this error: Uncaught ReferenceError: ActiveXObject is not defined

i know that "ActiveXObject" work only on IE, so i need other solution that work on all browsers..

1 Answers1

1

Only Internet Explorer supports ActiveXObject. If you are trying this in another browser, it won't be supported.

Daniel A. White
  • 187,200
  • 47
  • 362
  • 445