ActiveXObject is not defined. How do I fix?
This code function getFileDate(Str){ var oas = new ActiveXObject("Scripting.FileSystemObject"); var fileobj = oas.GetFile("LR0001.jpg"); return fileobj.DateCreated; }
Todas as respostas (1)
The ActiveXObject object is used to create instances of OLE Automation objects in Internet Explorer on Windows operating systems.
So it only supports Internet Explorer on Windows. No other browser support is available till date for ActiveXObject.
For cross browser solution, use object element instead. Read more about it here
Modificado por Abhishek Raj Simon a