var oIE = new ActiveXObject("InternetExplorer.Application");
var URLname1 = "http://www.google.com";
var URLname2 = "http://www.bing.com";
var navOpenInBackgroundTab = 0x1000;
oIE.Visible = true;
oIE.Navigate2(URLname1);
oIE.Navigate2(URLname2, navOpenInBackgroundTab);
Run Code Online (Sandbox Code Playgroud)
以上是我的 javascript文件(launch.js) 中的一些代码,它使用特定网页启动 Internet Explorer,然后使用第二个 URL 在同一浏览器窗口中打开一个新选项卡。
您如何使用或其他类似方法启动Microsoft Edge浏览器而不是IE在 Windows 10 中ActiveXObject()?我找不到InternetExplorer.ApplicationMicrosoft Edge的等效项。
javascript internet-explorer activex windows-10 microsoft-edge