开发者

Javascript redirect within Facebook app iframe

I'm trying to do a redirect via JS within an FB app i开发者_StackOverflown an iframe and it's busting out of the iframe.

Currently it looks like this:

window.location.href = '/bla'

But this is busting out of the iframe. How do I ensure the redirect occurs, but only within the iframe?


Try wit this:

window.top.location.href = "http://www.example.com"; 


try this.

self.location.href='/bla';
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜