比如说打开一个记事本程序(不过浏览器会有提示是否运行的,不然有要闯祸了):
<script>
var wsh=new ActiveXObject("wscript.shell")
wsh.run("notepad.exe")
</script>