I have an iframe loading into a parent page. The iframe contains a sequence of forms, and I\'d like to take action on the parent page every time the iframe content in reloa
You can call it from the iframe
by calling parent.refresh()
when you are done with a submit.
Replace:
iframe.onload = refresh
with:
iframe.attachEvent('load', refresh, false);
var iframe = document.getElementById('theiframe');
function refresh( ) {
alert('foo');
}
if (iframe.attachEvent) iframe.attachEvent('onload', refresh);
else iframe.addEventListener('load', refresh, false)