My document gives the user a choice of what program (effectively URL) to load in an iframe. The user may select another program later and the browser puts the prior choice in history. This allows the user to go back to a prior program that was loaded. No problem and the onload JAVASCRIPT lets the program know when this happens. Problem is the onload functions looks up the src attribute of the iframe, but instead of getting the URL of what is now (re)loaded in the iframe it lists what was the last change in the src. I tried accessing the href of the iframe, but that is protected since it is from another site. Is there a way to retrieve this. I suspect that using replacestate and popstate might be able do the trick. Any ideas?