<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>New Web Project</title>
        <script language="JavaScript">
            function OnKeyUp(_e)
            {
                //var e = _e?_e:window.event;//获取有效的的事件对象
                if(event.keyCode == 13)//按下的是否是回车键
                {
                    alert("你输入的内容是:"+Text1.value);
                }
            }
        </script>
    </head>
    <body>
        <h1>事件处理事例</h1>
        <input  />
    </body>
</html>

 

 

 

相关文章:

  • 2022-12-23
  • 2021-11-20
  • 2022-02-03
  • 2022-12-23
  • 2022-12-23
  • 2022-02-16
  • 2022-01-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
  • 2021-08-07
  • 2021-12-14
  • 2022-02-22
相关资源
相似解决方案