Posted By

chopbust on 03/03/11


Tagged


Versions (?)

Change Form Submit target destination


 / Published in: JavaScript
 

To change the action attribute of a form.

  1. function submitform()
  2. {
  3. document.myform.action="new_url_here"; // myform is the name of form in your <form> tag
  4. document.myform.submit(); // myform is the name of form in your <form> tag
  5. }

Report this snippet  

You need to login to post a comment.