I know that ActiveXObject is no longer in Microsoft Edge. So how can i use the FileSystemObject in Microsoft Edge? I'm trying to make a Microsoft Edge plugin that obtains the html code of a page web and writes it into a .txt in my local file system The following code is this:
browser.browserAction.onClicked.addListener(function(tab) {
var fso = new ActiveXObject("Scripting.FileSystemObject");
var f1 = fso.CreateTextFile("C:\\Users\\lucas\\Desktop\\htmltext.txt",true);
var markup = document.documentElement.outerHTML;
f1.WriteLine(markup);
f1.Close();});