title: create text file using javascript
body: <p>I want to create text file (notepad type file) using javascript. My code is given below but it is not working plz. Suggest me any solution for creating text file. </p>
  
  <pre><code>var txt = new ActiveXObject("Scripting.FileSystemObject");
  var s = txt.CreateTextFile("D:\\test.txt", true);// means file is store in my D drive.
  s.WriteLine('Hello');
  s.Close();   `
  </code></pre>