Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

How to support ActiveXObject in OSR

Post Reply
tad.chen
Posts: 104
Joined: Fri Jan 04, 2019 1:39 am

How to support ActiveXObject in OSR

Post by tad.chen »

Hi,

Some JS in html file will call function is ActiveX Object, such as:
<button onclick="wsh = new ActiveXObject('WScript.Shell'); wsh.Run('file:///C:/WINDOWS/system32/cmd.exe')">Open Cmd.exe </button>
or
var obj = document.createElement("embed"), ok;
obj.type="application/nptxsso";
obj.style.width="0px";
obj.style.height="0px";
document.body.appendChild(obj);
ok = obj.InitPVANoST();
It's used to load some application, and Commercial browser can load them correctly. But MiniBrowser and SimpleOSRBrowser in demo can't.

How to support it? Is there some demo?
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: How to support ActiveXObject in OSR

Post by salvadordf »

Hi,

Chromium doesn't support ActiveXObject. You need to use TWebBrowser (Internet Explorer) :
https://stackoverflow.com/questions/60360700/js-activexobject-on-chrome
Post Reply