B
Bob
Chris:
Try using the onSubmit event of the Form element to cancel the submission,
as opposed to the onClick event.
<script language=javascript>
function DoSubmit()
{
if (confirm("Sure?"))
{
return true;
}
else
{
return false;
}
}
</script>
<form method=post onSubmit=return DoSubmit();>
Returning false will stop the form from posting.
HTH
Try using the onSubmit event of the Form element to cancel the submission,
as opposed to the onClick event.
<script language=javascript>
function DoSubmit()
{
if (confirm("Sure?"))
{
return true;
}
else
{
return false;
}
}
</script>
<form method=post onSubmit=return DoSubmit();>
Returning false will stop the form from posting.
HTH