|
If you want to return without submitting, use type=button
If you want to press Enter to submit, let the button's onkeydown=KeyDown()
<script language="javascript">
function KeyDown()
{
if (event.keyCode == 13)
{
event.returnValue=false;
event.cancel = true;
Form1.btnsubmit.click();
}
}
</script> |
|