title: Error Activexobject is not defined
body: <p>this is my code </p>
  
  <pre><code>function writeToFile(){
                  var data= { srcimg :document.getElementById("ClonedElementX").src }
                  alert(data.srcimg);
                   var fso = new ActiveXObject("Microsoft.XMLDOM");
                   var fh = fso.OpenTextFile("C:\\Users\\Bhargavi\\workspace\\HTML\\drag&amp;drop\\parse", 8);
                   fh.WriteLine(data.srcimg);
                   fh.Close(); 
          }
  </code></pre>
  
  <p>Error is : Uncaught reference error  Activexobject is not defined. how to rectify that </p>