I have an ASP page that calls a javascript function and passes a variable to the function at the same time. The variable is used to update a hidden field in the form. After the hidden field is updated, the form is submitted.
It works like a charm in IE, but Netscape does not submit the form. It gives no error either. Code is attached below.
Thanks,
JoliM
Function used:
<script language="JavaScript">
<!--
function submit2(txt2) {
testform.Action.value = txt2;
document.testform.submit();
}
-->
</script>
Link used to call function:
<a href="javascript:submit2('Next')">Next</a>
Form used:
<form action="test.asp" name="testform" method=post>
<INPUT type="hidden" name=Action value="">
</form>
It works like a charm in IE, but Netscape does not submit the form. It gives no error either. Code is attached below.
Thanks,
JoliM
Function used:
<script language="JavaScript">
<!--
function submit2(txt2) {
testform.Action.value = txt2;
document.testform.submit();
}
-->
</script>
Link used to call function:
<a href="javascript:submit2('Next')">Next</a>
Form used:
<form action="test.asp" name="testform" method=post>
<INPUT type="hidden" name=Action value="">
</form>