Change Form Submit target destination


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

To change the action attribute of a form.


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.