读书人

frameset session逾期登录窗口跳到par

发布时间: 2012-09-21 15:47:26 作者: rapoo

frameset session过期登录窗口跳到parent

最近项目用到frameset布局,右边为主页面,当在session过期的时候登录窗口就会在右边的主窗口中显示出来,但是我想要的效果是直接显示在parent中,下面代码就可以实现:

<script type="text/javascript">if (top.location != self.location){     top.location=self.location;     }</script>

?

读书人网 >Web前端

热点推荐