ActiveXObject creation error “ Automation server can't create object”
问题 I have a very simple javascript code, <script language="javascript"> function RunExe() { w = new ActiveXObject("WScript.Shell"); w.run('notepad.exe'); return true; } </script> <form id="form1"> <div> <input type="button" value="Run" onclick="return RunExe()" /> </div> </form> Which create an activeX object to run notepad.exe, if I save this in a plain html and run it in the IE, it works fine opening up the notepad, but if I insert this into a aspx page and run it, it will give an error called