Ask a Question

Uncaught ReferenceError: ActiveXObject is not defined

kkn27
New 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? 

0 REPLIES 0
cancel
Showing results for 
Search instead for 
Did you mean: