Can I use iframe html code to view local(internal) sites?
If your asking if you can create an iframe on page A and have it load a local intranet site B, then have the contents of that iframe sent back to site A. The short answer is no. Strict policy and security restrictions prevent sites on different domains from accessing the internal content of an embedded iframe. Most browsers by specification treat iframes as top level containers and as such they can know that each other exist, but can not access the contents of each other. This is at the heart of what as known as cross site scripting. More information on cross site scripting can be found here: http://softwareas.com/cross-domain-communication-with-iframes Some techniques exist to bypass these security restrictions and are left to the domain of hackers.
Join our real-time social learning platform and learn together with your friends!