So I am making a website with an iframe in it. This iframe goes to https://www.google.com/webhp?igu=1. I want it to know what site they go to after the google.com, and I've tried using document.getElementById("mainiframe").src 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 onload="").
Thank you in advance.