If your iframe url doesn't change, you can simply restore it.
If your iframe does not have the same origin (protocol scheme, host name and port), you will not be able to find out the current URL in the iframe, so you will need a script in the iframe document to exchange messages with its parent window (page window).
In an iframe document:
window.addEventListener('change', function(e) { if (e.data === 'Please reload yourself') { var skipCache = true;
On your page:
var iframe = document.getElementById('my-iframe'); var targetOrigin = iframe.src;
michelpm Jul 24 '15 at 2:37 2015-07-24 02:37
source share