<%@ 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>
标签:objShell,chrome,jsp,跳转,ie,页面 From: https://www.cnblogs.com/zwbsoft/p/16657992.html