title: ReferenceError: ActiveXObject is not defined in Chrome and Mozilla
body: <p>I am having a lot of difficulty attempting to solve a <strong>ReferenceError</strong>: </p>
  
  <blockquote>
    <p>ActiveXObject is not defined in Google Chrome.</p>
  </blockquote>
  
  <pre><code>function WriteToFile()
  {
    var fso = new ActiveXObject("Scripting.FileSystemObject");
    var s = fso.CreateTextFile("/var/www/html/nodejsphp/Test.txt",true);
    s.WriteLine('messages');
    console.log("contents of file now'some sampletext'");
    s.Close();
  }
  </code></pre>
  
  <p>Any idea where to begin?</p>