Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What kind of function is this in JavaScript?

Tags:

javascript

I saw this on a forum and I was wondering what it was. If I can get anybody's response it would be very appreciated.

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

Can you tell me what it does and what browsers support it. Thanks.

like image 340
David G Avatar asked Feb 13 '26 20:02

David G


2 Answers

It's a function which constructs a FileSystemObject in JScript (Microsoft's version implementationcitation from MSDN of JavaScript). This sort of object provides access to a computer's file system.

ActiveX is only supported by Internet Explorer.

like image 142
Matt Ball Avatar answered Feb 16 '26 11:02

Matt Ball


What it does is give access to your local filesystem on your PC. It is only supported by Internet Explorer.

like image 37
kroonwijk Avatar answered Feb 16 '26 12:02

kroonwijk