<html>
<head>
<script language='javascript'>
function document.onkeydown(){
if (event.keyCode == 13){
alert('惠万鹏你好.');
}else{
alert('你按错了键.');
}
}
</script>
</head>
<body>
<input type='button' value='test'/>
</body>
</html>
<head>
<script language='javascript'>
function document.onkeydown(){
if (event.keyCode == 13){
alert('惠万鹏你好.');
}else{
alert('你按错了键.');
}
}
</script>
</head>
<body>
<input type='button' value='test'/>
</body>
</html>