JavaScript对回车键(enter)提交表单的支持
<script language="javascript"for="document" event="onkeydown">
<!--
if(event.keyCode == 13 ){
document.form[0].submit();
}
-->
</script>
enter键的ASCII值为13
JavaScript对回车键(enter)提交表单的支持
<script language="javascript"for="document" event="onkeydown">
<!--
if(event.keyCode == 13 ){
document.form[0].submit();
}
-->
</script>
enter键的ASCII值为13