title: create json file in javascript
body: <p>I am trying to create a json file from javascript . since i didnt get the code i am trying to create a text file as ..</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script language="javascript"&gt;
  function textFile()
  {
  var fso = new ActiveXObject("Scripting.FileSystemObject");
  var s = fso.CreateTextFile("D:\\Test.txt", true);
  s.WriteLine('Hello JavaScript');
  s.Close();
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body onLoad="textFile()"&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This code works only in IE ...
  please help me to work this code at least in chrome..
  Please help me to create json file also...</p>