top.location.href在IE 8中不起作用 [英] top.location.href doesn't work in IE 8
本文介绍了top.location.href在IE 8中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
top.location.href
在我将Facebook重定向到另一个网址时,我的Facebook应用程序在IE8中不起作用。
任何人都有任何其他解决方案将用户重定向到另一个URL(需要将该URL重定向到iframe外,在这种情况下, apps.facebook.com/application
解决方案
尝试为IE使用 window.top.location =NEW_URL
。或者,如果您的代码从 iframe
, parent.location =NEW_URL
top.location.href
doesn't work in IE8 from my facebook application when i redirect people to another URL.
Anyone have any other solution to redirect a user to another URL (It's need to redirect the URL outside the iframe, in this case the apps.facebook.com/application
URL and not my domain URL)
Anyone have any solution?
解决方案
Try to use window.top.location = "NEW_URL"
for the IE. Or, if your code is run from iframe
, parent.location = "NEW_URL"
这篇关于top.location.href在IE 8中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文