title: Can you track an iframe's URL when it changes
body: <p>So I am making a website with an iframe in it. This iframe goes to <a href="https://www.google.com/webhp?igu=1" rel="nofollow noreferrer">https://www.google.com/webhp?igu=1</a>. I want it to know what site they go to after the google.com, and I've tried using <code>document.getElementById(&quot;mainiframe&quot;).src</code> which works in saying that its at google.com, but it doesn't change, even when I reassign the variable every 5 seconds. I think that the iframe URL changes, just the stuff it displays, so is there a way for me to see what URL the iframe is displaying, or a way to make the iframe change its URL every time it loads(with <code>onload=&quot;&quot;</code>).</p>
  <p>Thank you in advance.</p>