谷歌火狐打开IE可行性测试java
第一步:chrome
安装控件:shell
连接: https://pan.baidu.com/s/19l5pxzLF6XEn1Yl9QXexEA 密码: rg7r浏览器
第二步:页面代码块:测试
<script language="JavaScript">
function open_exe(shellp,str)
{
a=new ActiveXObject("wscript.shell");
a.run(shellp+" "+str);
}
</script>
<button onclick="open_exe('notepad.exe','c://ltdz1.txt')">打开notepad</button>
<button onclick="open_exe('winword.exe','c://long.doc')">打开word</button>
<button onclick="open_exe('chrome','http://www.baidu.com')">chrome打开浏览器</button>
<button onclick="open_exe('iexplore','http://www.baidu.com')">IE打开浏览器</button>
<a href="alert:www.baidu.com">用IE浏览器打开百度</a>.net
部份内容参考:https://blog.csdn.net/java_zys/article/details/51837899blog