Search code examples
javascriptinternet-explorer-8activex

ActiveXObject in IE8


I want to use javascript to create a textfile, so I used :

This Line of code:

var fso = new ActiveXObject("Scripting.FileSystemObject");

It's working properly in IE6 but not in IE8.

Any suggested solution?


Solution

  • IE8 internet setting is more secure, to it doesn't allow activex objects. If you have to run this, goto Tools->Internet Options-> Security->Custom Level->choose enable or prompt activex..