title: JavaScript ActiveXObject
body: <p>I have a queastion about ActiveXObject in javascript. I have tryed this code in Mozila FireFox 6.0.2 </p>
  
  <pre><code>var AXobj = new ActiveXObject("WScript.Shell");
  AXobj.SendKeys(key);
  </code></pre>
  
  <p>But the error console says that ActiveXObject is undefined. After that, I have tryed this:</p>
  
  <pre><code>var AXobj = new DOMParser("WScript.Shell");
  AXobj.SendKeys(key);
  </code></pre>
  
  <p>But then, the error console says:</p>
  
  <blockquote>
    <p>Error: uncaught exception: [Exception... "Security error"  code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)"  location: "file:///C:/Documents%20and%20Settings/Guest/Desktop/stuff/html/GML%20to%20JS.html Line: 335"]</p>
  </blockquote>
  
  <p>By the way, i don't want to use ActiveXObject only for SendKeys. I need it for more stuff (like writing in file... ) AND, the reason i use FireFox instead of IE is that FireFox supports HTML5.</p>