0

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.

DRCoder
  • 21
  • 5
  • This would be a major invasion of the user's privacy, so no, there is no way (without the co-operation of the site being visited in the frame). – Quentin Dec 14 '21 at 19:40

0 Answers0