Js调用本地程序

<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>

posted on 2009-11-24 15:20  韩显川  阅读(2541)  评论(0)    收藏  举报

导航