Well, there is no way to access the DOM of an iframe if it doesn't have the same origin as the containing page. So in that case, you won't be able to tell if the form is submitted. You would have to edit the JS of the iframe page and have the popup reload that page when you submit the form.
window.opener.location.reload()