T
trpost
I am trying to utilize a form to display a message and not submit when
the submit button is clicked, here is an example on what I have done:
<script type="text/javascript">
<!--
function tst()
{
alert('hi');
return false;
}
-->
</script>
<form name=form1 onSubmit=tst();>
.....
....
</form>
When I submit the form, I get the alert message and then the page
refreshes, what I would like is to submit and see the message and then
be returned to the form without having it submit.
the submit button is clicked, here is an example on what I have done:
<script type="text/javascript">
<!--
function tst()
{
alert('hi');
return false;
}
-->
</script>
<form name=form1 onSubmit=tst();>
.....
....
</form>
When I submit the form, I get the alert message and then the page
refreshes, what I would like is to submit and see the message and then
be returned to the form without having it submit.