第一次用到这个,做个记录,在html页面中调用本地程序:
复制代码 代码如下:
<html>
<head>
<script language="javascript">
function Run(strPath)
{
var objShell = new ActiveXObject("wscript.shell");
objShell.exec(strPath);
objShell = null;
}
</script>
</head>
<body>
请输入要运行的程序路径:<br>
<input name=exe type=text size=20 value="D:\a.doc">
<BUTTON class=button onclick="Run(exe.value)">确定</BUTTON>
</body>
</html>
最后
以上就是聪慧向日葵最近收集整理的关于html中使用javascript调用本地程序(exe、doc等)实现代码的全部内容,更多相关html中使用javascript调用本地程序(exe、doc等)实现代码内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复