title: ActiveXObject is not defined and can't find variable: ActiveXObject
body: <p>i want to create text file in local,  when i browse in Google chrome click of the button it is showing error like  <strong>ActiveXObject is not defined</strong> and  when i browse in safari click of the button it is showing error like  <strong>can't find variable: ActiveXObject</strong> . any one can help me.how can i achieve and create file .Thanq</p>
  
  <pre><code>&lt;script&gt;
        function createFile() {    
        var object = new ActiveXObject("Scripting.FileSystemObject");       
        var file = object.CreateTextFile("C:\\Hello.txt", true);
        file.WriteLine('Hello World');
        alert('Filecreated');
        file.WriteLine('Hope is a thing with feathers, that perches on the soul.'); 
        file.Close();
        }
      &lt;/script&gt;
  &lt;input type="Button" value="Create File" onClick='createFile()'&gt;
  </code></pre>