为页面添加回车事件(回车直接提交页面信息)
IE下有效
1<script language="javascript" for="document" event="onkeydown">
2 if (event.keyCode == 13)
3 {
4 document.getElementById("btnShow").click();
5 }
6</script>
2 if (event.keyCode == 13)
3 {
4 document.getElementById("btnShow").click();
5 }
6</script>