在登录页面中加入
<script type="text/javascript">
function checkParent(){
if(window.parent.length>0)
{
window.parent.location = "../admin/adminlogin.aspx";
}
}
本文介绍了一种在登录页面中实现窗体跳转的方法,通过JavaScript代码检测当前窗口是否被嵌套,并自动跳转到指定的管理后台登录页面。
在登录页面中加入
<script type="text/javascript">
function checkParent(){
if(window.parent.length>0)
{
window.parent.location = "../admin/adminlogin.aspx";
}
}

被折叠的 条评论
为什么被折叠?