jjoy123123
Programmer
I want to submit my form (using Javascript) when a user clicks on the Save button. However, its not submitting to the Save_Call.asp page - it's just submitting the form to the page I am on. I know that the submit code is running because I can watch the page refresh. If it's making it to the submit code, then it must have read the line before it where I'm setting the action variable. Why isn't it going to Save_Call.asp though?
FYI - The reason I'm submitting through JavaScript is because I'm actually submitting to a different page if they click a different button.
JAVASCRIPT FUNCTION ---------------------------------------------------------------------
<script language="JavaScript">
function SaveForm()
{
document.DetailForm.action == "Save_Call.asp";
document.DetailForm.submit();
}
</script>
FORM TAG --------------------------------------------------------------------------------
<Form NAME="DetailForm" id="DetailForm" method="POST">
<input type="button" name="Save" onclick="SaveForm()" value="Save">
FYI - The reason I'm submitting through JavaScript is because I'm actually submitting to a different page if they click a different button.
JAVASCRIPT FUNCTION ---------------------------------------------------------------------
<script language="JavaScript">
function SaveForm()
{
document.DetailForm.action == "Save_Call.asp";
document.DetailForm.submit();
}
</script>
FORM TAG --------------------------------------------------------------------------------
<Form NAME="DetailForm" id="DetailForm" method="POST">
<input type="button" name="Save" onclick="SaveForm()" value="Save">