Say, for example, you have an HTML page called index.html with the following code:
<html> <head> <title>A web page</title> </head> <body> <h1>A web page<h1> <img src="logo.png"/> <iframe src="index.html"></iframe> </body> </html>
When I view this page in a browser, I expected iframes to form an endless loop, because in fact the page continues to call itself, but I only get one iframe. Obviously, this is good, but I'm just wondering what is stopping this?
Or , if you have two web pages at different URLs, each of them has an iframe on another page. For example, what if the Google homepage had <iframe src="http://www.facebook.com"></iframe> and the Facebook homepage, there is <iframe src="http://www.google.com"></iframe>
source share