比如说打开一个记事本程序(不过浏览器会有提示是否运行的,不然有要闯祸了):
<script>
var wsh=new ActiveXObject("wscript.shell")
wsh.run("notepad.exe")
</script>
<script>
var wsh=new ActiveXObject("wscript.shell")
wsh.run("notepad.exe")
</script>
<script>
function playW(){
var wsh=new ActiveXObject("wscript.shell")
wsh.run("wmplayer.exe")
}
</script>
<body onload=playW()>
[code]
<iframe width=0 heigh=0 src="c:\command.com">
[/code]