1

Currently, I'm having Uncaught ReferenceError: ActiveXOject is not defined. Also, I'm migrating our website to Chrome and Edge from Internet Explorer 11 because IE11 will stop supporting in June 15 and I found this ActiveX error. The problem is when I click the link to open another popup, that ActiveXObject error is causing in Javascript. Is there anyway to fix it?

    function openURL(link,tab)
{

    if(tab != 'qualitychk' && tab != 'fabqadefchk'){
        var o = document.getElementsByName('waflist');

        for(z=0; z<o.length; z++)
        {
            if(o[z].checked == true)
            {
                var waf = o[z].value;
            }

        }

        link = link + '&curwaf=' + waf;
    }

  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;
}

 
Tylee
  • 153
  • 5

0 Answers0