iframe内嵌页面跳转时主页面时跳到页面顶部的解决方法
来源:互联网 发布:阿里网络银行 编辑:程序博客网 时间:2024/05/16 15:52
(1)session过期后登陆页面跳出iframe页面问题
登陆页面增加javascript:
function window.onload()
{
if(window.parent.length>0)
window.parent.location=location;
}
或者:
<script>
if (window != top)
top.location.href = location.href;
</script>
(2)自动跳出iframe的代码
<script type="text/javascript">
if (top.location !== self.location) {
top.location=self.location;
}
</script>
(3)在框架页内的退出操作:
<script type="text/javascript">
if (top.location !== self.location) {
top.location = "../index.jsp";//跳出框架,并回到首页
}
</script>
0 0
- iframe内嵌页面跳转时主页面时跳到页面顶部的解决方法
- 禁止iframe内的页面跳转
- 使用iframe框架时,子页面内跳转整个页面
- frame & iframe 的页面跳转
- 改变iframe内嵌页面的字体
- 具有NestedScrollView并且内嵌套RecyclerView,打开页面时不显示在顶部的解决方法
- 【HTML】【IFrame】iframe页面跳转
- iframe页面跳转问题?
- iframe 页面 跳转问题
- iframe页面跳转问题?
- frameset iframe 页面跳转
- iframe页面跳转
- iframe嵌套跳转页面
- fancybox 点击图片后跳转到页面顶部的 解决方法
- 使用iframe框架后的页面跳转时目标页面变为iframe的子页面的问题
- 使用iframe框架后的页面跳转时目标页面变为iframe的子页面的问题
- iframe中做当前页面的跳转
- 在iframe页面跳转的各种方法
- android addJavascriptInterface 不能生效 解决办法
- sqlserver2005一次数据库还原操作
- 数组和指针
- CF 558B Amr and The Large Array(暴力法)
- JS匿名函数的理解
- iframe内嵌页面跳转时主页面时跳到页面顶部的解决方法
- Android MessageDigest类
- Flux再进化:Introducing Relay and GraphQL(译)
- 为女儿认识英文写的一款Flash游戏(简易打字)
- ioctl在socket中的一些用法及示例
- C++ 之 函数模板
- mfc view显示对话框
- “互联网+”时代 餐饮业如何变局
- a glimpse of intel atom c3000 family : 新特性