这段代码只能在ie浏览器下有效运行;
function openExe(shellp,str){
a=new ActiveXObject("wscript.shell");
a.run(shellp+" "+str);
}
//调用chrome,打开一个网址
<a οnclick="openExe('C:/Users/Administrator/AppData/Local/Google/Chrome/Application/chrome.exe','192.168.1.3/safety')" target="_blank">XXX系统</a>
//调用VNC-Viewer,后面的参数指定的是VNC Server的地址和端口
<a href="" οnclick="openExe('d:\VNC-Viewer-5.2.1-Windows-32bit.exe',' 192.168.1.10 5900')" target="_blank">XXX平台</a>