首页 > 其他分享 >jsp页面ie跳转谷歌

jsp页面ie跳转谷歌

时间:2022-09-05 14:37:20浏览次数:72  
标签:objShell chrome 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>

  

标签:objShell,chrome,jsp,跳转,ie,页面
From: https://www.cnblogs.com/zwbsoft/p/16657992.html

相关文章