关于Session(框架中登录问题)
作者:小戒 日期:2006-12-27
function checkParent()
{
if(window.parent.length>0)
{
window.parent.location="login.html";
}
}
<body onload="checkParent();">……</body>
The window.length property returns the number of frames contained in a window. 当然可以通过这个原理:
Response.Write("<script>window.parent.parent.location.href='index.aspx?error=登陆超时!'</script>");
Response.End();
有几个iframe就可以弄几个parent
评论: 0 | 引用: 58 | 查看次数: -
发表评论
上一篇
下一篇

文章来自:
Tags: