Js调用本地程序

时间:2014-05-24 09:01:23   收藏:0   阅读:473

 

bubuko.com,布布扣
<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>
bubuko.com,布布扣

 

 

 

来源: <Js调用本地程序 - 韩显川 - 博客园>

Js调用本地程序,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!