登录页面js

 if (document.referrer != '') {
                if (document.referrer.indexOf('ogin.aspx') < 0)
                    window.parent.location.href = 'login.aspx';
            }
原文地址:https://www.cnblogs.com/wenming205/p/2033510.html