举个例子,JS调用记事本程序
<script language=javascript>
var wsh=new ActiveXObject("wscript.shell")
wsh.run("notepad.exe")
</script>