<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>无标题文档</title> <script language=javascript> function Open() { var wsh=new ActiveXObject("wscript.shell"); wsh.run("notepad.exe"); } </script> </head> <body> <input type="button" name="Submit" value="按钮" onclick="Open()" /> </body> </html>
来源: <Js调用本地程序 - 韩显川 - 博客园>