soft_coder 0 Light Poster

Hi!
I have the following scenario:

<html>
<head>
</head>
<body>
<iframe id="iframe_page" src="https://www.samplepage.com"/>
</body>
</html>

Please see the html above. Here I have an iframe loading a page in another domain.
What exactly happening is, first the iframe loads a page in our domain then that page redirects to a page in another domain. After that when I check the source of the iframe, it shows the very first url i.e. the url in our domain but the page loaded is in another domain.

So is there a way to detect the changes happening inside the iframe using JavaScript.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.