geoffs3310
geoffs3310

Reputation: 14008

facebook iframe application redirect

I have made an iframe style facebook application that uses php and javascript (jquery). When a browser is looking at my canvas page how do I redirect their browser window to a url?

Thanks

Upvotes: 0

Views: 958

Answers (1)

Steve Kelly
Steve Kelly

Reputation: 373

You need to reference the window 'top'

window.top.location.href="your link here"; 

That will ensure you break out of any iframes.

Upvotes: 6

Related Questions