0
点赞
收藏
分享

微信扫一扫

js脚本实现登录界面始终保持在最上端

苦茶如歌 2022-11-18 阅读 93
编程语言


<body οnlοad="goTop()">

        function goTop() {
            if (window.top.dialogArguments) {
                window.top.dialogArguments.location = window.location;
                window.top.returnValue = false;
                window.top.close();
            } else if (window.top.opener) {
                window.top.opener.location = window.location;
                window.top.close();
            } else if (window.top != window.self) {
                window.top.location = window.location;
            }

        }

举报

相关推荐

0 条评论