/ Published in: JavaScript
To change the action attribute of a form.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function submitform() { document.myform.action="new_url_here"; // myform is the name of form in your <form> tag document.myform.submit(); // myform is the name of form in your <form> tag }