function saveForm() {
var thisForm = document.MC;
thisForm.submit();
}
function submitForm() {
var thisForm = document.MC;
thisForm.submit();
}
<BODY>Login Form:<BR>
<BR>
<FORM name="MC" method="POST" action="/WebServlet?action=ConfirmScore">
<INPUT type="submit" name="Submit"><a href=http://www.webdeveloper.com/forum/archive/index.php/"Javascript:submitForm();">
<INPUT type="submit" name="Save"><ahref="Javascript:saveForm();">
</FORM>
</BODY>
In my code, there are two buttons, one is "save" and another one is "submit".
After clicked save or submit, the form will be submitted to "/WebServlet?action=ConfirmScore". Now i want to modify the code to:
when click "save" button, the form will be submitted to "/WebServlet?action=ConfirmScore", but when click "submit", can the form be submitted to "/WebServlet?action=FullForm"??
so that the action value is diiferent due to different event??
var thisForm = document.MC;
thisForm.submit();
}
function submitForm() {
var thisForm = document.MC;
thisForm.submit();
}
<BODY>Login Form:<BR>
<BR>
<FORM name="MC" method="POST" action="/WebServlet?action=ConfirmScore">
<INPUT type="submit" name="Submit"><a href=http://www.webdeveloper.com/forum/archive/index.php/"Javascript:submitForm();">
<INPUT type="submit" name="Save"><ahref="Javascript:saveForm();">
</FORM>
</BODY>
In my code, there are two buttons, one is "save" and another one is "submit".
After clicked save or submit, the form will be submitted to "/WebServlet?action=ConfirmScore". Now i want to modify the code to:
when click "save" button, the form will be submitted to "/WebServlet?action=ConfirmScore", but when click "submit", can the form be submitted to "/WebServlet?action=FullForm"??
so that the action value is diiferent due to different event??