G
Greg Scharlemann
I have the following test page:
<html>
<head>
<script type="text/javascript">
function submitForm() {
alert("here");
return false;
}
</script>
</head>
<body>
<form action="test.html" id="thisForm" name="thisForm"
method="post" onsubmit="return submitForm()">
<input type="text" name="test" value="hello" size="20" />
<a href="javascript:document.thisForm.submit()">Submit</a>
</form>
</body>
</html>
When I click the submit link, the form submits, but it does not hit the
submitForm() method. Any insight into what I have overlooked?
Thanks in advance.
<html>
<head>
<script type="text/javascript">
function submitForm() {
alert("here");
return false;
}
</script>
</head>
<body>
<form action="test.html" id="thisForm" name="thisForm"
method="post" onsubmit="return submitForm()">
<input type="text" name="test" value="hello" size="20" />
<a href="javascript:document.thisForm.submit()">Submit</a>
</form>
</body>
</html>
When I click the submit link, the form submits, but it does not hit the
submitForm() method. Any insight into what I have overlooked?
Thanks in advance.