梦幻之旅

DEBUG - 天道酬勤

   :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  671 随笔 :: 6 文章 :: 256 评论 :: 0 Trackbacks
<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>
posted on 2008-05-13 11:45 HUIKK 阅读(1203) 评论(2)  编辑  收藏 所属分类: JavaScript

评论

# re: js 回车键 2012-11-19 17:22 奥巴马
谷歌能用吗  回复  更多评论
  

# re: js 回车键 2012-11-19 17:22 奥巴马
QQ285984303  回复  更多评论
  


只有注册用户登录后才能发表评论。


网站导航: