geoffs3310 geoffs3310 - 6 months ago 10
jQuery Question

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

Answer

You need to reference the window 'top'

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

That will ensure you break out of any iframes.

Comments