Sending form to iframe


/ Published in: HTML
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <form action="do_stuff.aspx" method="post" target="my_iframe">
  2. <input type="submit" value="Do Stuff!" />
  3. </form>
  4.  
  5. <!-- when the form is submitted, the server response will appear in this iframe -->
  6. <iframe name="my_iframe" src="not_submitted_yet.aspx"></iframe>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.