开发者

Redirection through javascript inside a facebook iframe

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜