title: ActiveXObject("WScript.Shell"); is undefined in Firefox?
body: <p>Here I am trying to call system calculator using ActiveXObject. In IE it is working fine for me but in Firefox it is not coming. I am getting the Undefined error. How to solve this problem in Firefox?</p>
  
  <pre><code>try{
      if(gBrowser == 'IE'){
          var shell = new ActiveXObject("WScript.Shell");  
          shell.Run("calc"); 
      }
      else{
          var shell = new ActiveXObject("WScript.Shell");  
          shell.Run("calc",1,true); 
      }
  }
  catch(e){
      if(gBrowser == 'IE'){
          alert(e.description);
      }
      else{
          alert(e.description);
      }
  } 
  </code></pre>