我使用这个代码:
<script>
function LaunchApp() {
if (!document.all) {
alert("Available only with Internet Explorer.");
return;
}
var ws = new ActiveXObject("WScript.Shell");
ws.Exec("C:\\Windows\\notepad.exe");
}
<a href="javascript:LaunchApp()">Launch the executable</a>
但这不起作用。(链接被禁用)