For Facebook Apps, how to call the parent window in the iframe?

Posted by seatoskyhk on Stack Overflow See other posts from Stack Overflow or by seatoskyhk
Published on 2010-06-16T02:17:27Z Indexed on 2010/06/16 2:22 UTC
Read the original article Hit count: 252

Filed under:
|

So, in facebook, I cannot call myFrame.window to get the iframe parent window. How can I do it?

What I'm trying archieve is: I have a popup (div) that will load a iframe.
And then in the iframe will have a button. Once people click the button inside the iframe, I want to close the popup(div).
Normally, I need to get the parent window. Then I can destroy the popup div. But in facebook, how can I do it? any alternative way to do that?

I don't want to refresh the page. :)

© Stack Overflow or respective owner

Related posts about facebook

Related posts about iframe