title: How to create new folder on desktop using Javascript?
body: <p>How to create a new folder on desktop by using JavaScript after a button is clicked?</p>
  
  <p>My Scenario :</p>
  
  <ol>
  <li>I want to create a button that user can click.</li>
  <li>When user click on the button, a folder will be created on the user's desktop.</li>
  </ol>
  
  <p>Here is the code (that I have found after a several research) that I use to try to do the scenario above.</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
    &lt;script&gt;
      function create() {
        var fso = new ActiveXObject("Scripting.FileSystemObject");
        fso.CreateFolder("C:\\Temp\\myFolder");
        fso = null;
      }
    &lt;/script&gt;
    Create Folder: "c:\newfolder"
    &lt;form name="myForm"&gt;
      &lt;input type="Button" value="Click to Create New Folder" onClick="create()"&gt;
    &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>