how to create folder in javascript

<html>
<body>

<script>
  //Create Folder: "c:\testfolder" in specified location

  function createnewfolder()
  {
    var myFSOObject, newfolderObj;
    myFSOObject = new ActiveXObject("Scripting.FileSystemObject");
    newfolderObj = myFSOObject.CreateFolder ("c:\\newtmp\\");
  }
</script>

  <form name="myFormTest">
    <input type="Button" value="Click to Create New Folder" onClick='createnewfolder()'>
  </form>

</body>
</html>