解决iframe重定向让父级页面跳转

解决iframe重定向让父级页面跳转

 

原文:http://www.jb51.net/article/40583.htmhtml

有内嵌iframe的页面,当session过时时,点击链接重定向后的跳转会在iframe中跳转,在登陆页面中加入下面的代码,就会在最外层页面跳转html5

原文:http://www.cnblogs.com/JemBai/archive/2011/10/09/2203429.htmlios

<script language="JavaScript"> 微信

if (window != top) session

top.location.href = location.href; post

</script>spa

 

原文:http://blog.csdn.net/kakaxid/article/details/52624988.net

window.location.href、location.href   是本页面跳转htm

parent.location.href    是上一层页面跳转blog

top.location.href     是最外层的页面跳转

 

html5页面嵌套iframe子页面,在ios微信里打开长按识别不了二维码,缘由是iframe子页面,重定向让父级页面执行事件就能够了

相关文章
相关标签/搜索