ActiveXObject in IE8

I want to use javascript to create a text file, so I used:

This line of code:

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

It works correctly in IE6, but not in IE8.

Any suggested solution?

+3
source share
1 answer

IE8 Internet settings are more secure, they are not allowed activex objects. If you need to run this, go to Tools-> Internet Options-> Security-> Custom Level-> select enable or prompt activex ..

+5
source

Source: https://habr.com/ru/post/1748311/


All Articles