开发者

Javascript redirect within Facebook app iframe

开发者 https://www.devze.com 2023-04-13 01:47 出处:网络
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.

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

精彩评论

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