Here is an example of sending text to a remote server. And you can print javascript on the remote server if you want to change the page on which you have Iframe to say something like success. Or a pop-up message stating that it has ended. On a remote server, you can print this to create a popup:
<script> parent.document.getElementById('postmessage').style.display='block'; parent.alert('Successfully posted');</script>
On a webpage, you want to send information from a form and iframe like this.
<span id="postmessage" style="display:none">Success Message</span> <form action="http://www.remoteserver.com/upload_test.php" method="post" target="post_to_iframe"> <input type="hidden" value="the text to send to remote server" /> <input type="submit" value="Submit" /> </form> <iframe name="post_to_iframe" style="width: 600px; height: 500px;"></iframe>
source share