Let's say I have the following iframe on my website:
<iframe id="my-frame" src="www.espn.com"></iframe>
If someone where to interact the iframe and make a change where the URL inside of the iframe updated its parameters for example:
Is there a way to capture the updated URL from the iframe or the new parameters?
To give you an idea of what I am trying to do in my mind it would look something like this:
var myFrame = document.getElementById("my-frame");
myFrame.addEventListener('change', (event) =>
// get URL from iframe after the URL has changed
// example: www.espn.com?q=TEAMS:cowboys
);
is this possible?