kkn27
3 years agoNew Member
Uncaught ReferenceError: ActiveXObject is not defined
function openURL(link) {
var shell = new ActiveXObject("WScript.Shell");
shell.run("Chrome "+link);
// shell.run("microsoft-edge:"+link);
// alert(link);
document.getElementById('openURL').style.visibility='hidden'; // hide URL link to prevent double entry // isDraw = true;
}
I got this ActiveXObject error when I try to use my website in Chrome and Edge. It's working well in Ie11 but not working well in Edge. May I know how can I fix it?