最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

JS打开浏览器

业界 admin 3浏览 0评论
<script   language="JavaScript">  
  function   open_exe(shellp,str)  
  {  
  a=new   ActiveXObject("wscript.shell");  
  a.run(shellp+"   "+str);  
  }  
   
</script>
<button   οnclick="open_exe('notepad.exe','c://ltdz1.txt')">打开notepad</button>
<button   οnclick="open_exe('winword.exe','c://long.doc')">打开word</button>
<button   οnclick="open_exe('chrome','http://www.baidu')">chrome打开浏览器</button>

<script   language="JavaScript">  
  function   open_exe(shellp,str)  
  {  
  a=new   ActiveXObject("wscript.shell");  
  a.run(shellp+"   "+str);  
  }  
   
</script>
<button   οnclick="open_exe('notepad.exe','c://ltdz1.txt')">打开notepad</button>
<button   οnclick="open_exe('winword.exe','c://long.doc')">打开word</button>
<button   οnclick="open_exe('chrome','http://www.baidu')">chrome打开浏览器</button>

发布评论

评论列表 (0)

  1. 暂无评论