<body>
<div id="loaded_content">
<iframe id="iframe" src="someurl"></iframe>
</div>
The “Same Origin” policy states that: ... open or a window inside , and that window comes from the same origin, then we have full access to that window. otherwise, if it comes from another origin, then we can't access the content of that window: variables, document, anything