开发者

Redirection through javascript inside a facebook iframe

开发者 https://www.devze.com 2023-04-11 23:25 出处:网络
I need to redirect inside a facebook application and then redirect back to the first page. This is all occuring within that facebook page and i need to tackle the facebook\'s iframe solution. I see th

I need to redirect inside a facebook application and then redirect back to the first page. This is all occuring within that facebook page and i need to tackle the facebook's iframe solution. I see that i will need to use top.location somehow. I cant figure out how.

EDIT: I have a facebook application. There is a link I want the user to go to and then come back on the current page. Since this开发者_开发知识库 is inside facebook's iframe, its hard to achieve through simple redirection.


Nothing special. Use simple anchor tag to take user to another page:

<a href="/next-page.html">Come here</a>

And to take him back use javascript:

location.href = '/index.html';

That's all!

0

精彩评论

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

关注公众号