Facebook and others offer small frames that I can post on my site. Example:
<iframe src="http://www.facebook.com/widgets/like.php?href=http://example.com"
scrolling="no" frameborder="0"
style="border:none; width:450px; height:80px"></iframe>
What would I like to know if I inserted this code in my direction, could the code that they upload to my page be able to access the DOM of my page? I see some security considerations, if so.
Likewise, facebook allows me to put an iframe on my site, that's how facebook apps work. Can I then delete any data from any page containing my iframe?
Note. I used facebook as an example, but many companies do the same, so this quesiton has nothing to do with facebook in any way, so I don't put it as such.
Can a parent page also access the iframe DOM?
source
share