Created
June 4, 2014 09:52
-
-
Save voku/6aedac1cbef861366e61 to your computer and use it in GitHub Desktop.
post data to an iframe: Doesn't take any JavaScript or anything. You just have the form's target attribute match the iframe's name attribute. The outer page doesn't even reload. But it might appear to at first glance since many browsers run the page-loading spinner in the tab when an iframe reloads. - From http://snippetlib.com/html/post_data_to…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="iframe.php" target="my-iframe" method="post"> | |
<label for="text">Some text:</label> | |
<input type="text" name="text" id="text"> | |
<input type="submit" value="post"> | |
</form> | |
<iframe name="my-iframe" src="iframe.php"></iframe> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment