jsp页面ie跳转谷歌
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>首页</title> </head> <body> <div> <a href=" " onclick='test()'>打开chrome</a> </div> </body> </html> <script type="text/javascript"> function test(){ var objShell = new ActiveXObject("WScript.Shell"); objShell.Run("cmd.exe /c start chrome http://localhost:8021", 0, true); } </script>
本文来自博客园,作者:zwbsoft,转载请注明原文链接:https://www.cnblogs.com/zwbsoft/p/16657992.html
电话微信:13514280351