发布网友
共1个回答
热心网友
用HTML的超链接打开应用程序的方法是利用window.open执行一个exe或者bat文件实现的。
1、编写带有button的html代码:
<!DOCTYPE html>
<html>
<body>
<form action="demo-form.php">
<input type="button" value="点击打开记事本" onclick="window.open('file:///C:/Windows/System32/notepad.exe')" />
</form>
</body>
</html>
2、执行后运行效果如下:
1、只有一个提示点击提交的按钮
2、点击后记事本程序被打开: