<script type="text/javascript">
function disableEnterKey(e) {
var key;
if (window.event)
key = window.event.keyCode; //IE
else
key = e.which; //firefox
return (key != 13);
}
</script>
<body onkeypress="return disableEnterKey(event);">
posted on 2011-04-26 17:40
孤飞燕 阅读(252)
评论(0) 编辑 收藏 所属分类:
JS