rose
rose

Reputation: 1

How to redirect to another page in a Facebook application?

How do I redirect to another page in a Facebook application?

Upvotes: 0

Views: 1962

Answers (2)

Harry B
Harry B

Reputation: 2971

if you are using fbjs then it's document.setLocation('http://example.com');

If you are using an iframe app then with javascript it's window.top.location.href = 'http://example.com';

and for an anchor tag:

<a href="http://example.com" target="_top">Link text</a>

If you don't care about the browsers address bar changing and only the iframe being redirected then you can use standard links and javascript.

Upvotes: 3

Neil Knight
Neil Knight

Reputation: 48587

document.setLocation('url');

Upvotes: 0

Related Questions