JavaScript

The ActiveXObject() Function

tomato13 2008. 8. 25. 20:05

http://www.webreference.com/js/column55/activex.html

 

..........................

The ActiveXObject() constructor function creates an instance of an OLE Automation (ActiveX) object. once an object is created, you refer to it in code using the object variable you defined.

.........................

 

ex) java script기반 file access example

 

  function test3(string) {
  
   var fs = new ActiveXObject("Scripting.FileSystemObject");
   
   fsp = fs.createtextfile("C:\\result.xml");
   fsp.write(string);
   fsp.close();
   
   document.write("test3 complete");
  }