Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get parent page html content from facebook iframe?

Here I am working with facebook application.

I have create page which are working in facebook iframe window.

I want to access main(Parent) window html source from iframe which create by me.

Here I have tried for

parent.document and window.top.document and window.parent

all three are not working in my case. If you have any other idea then let me know,

Thanks

like image 376
Yashwant Kumar Sahu Avatar asked Nov 14 '22 19:11

Yashwant Kumar Sahu


1 Answers

You can't access content outside of your IFrame. Otherwise you could change content outside of it and modify Facebook, just because your IFrame is loaded inside of Facebook ;)

like image 69
Deradon Avatar answered Dec 23 '22 05:12

Deradon