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';
精彩评论