onkeydown onkeyup
2个一起用就不会慢一拍
单个使用上面任何一个都有点问提          onkeyup 一直按着键盘 <span>里面的数字不变无效
onpropertychange 可以  但是 ieeonly

解决方案 »

  1.   

    setTimeOut 我用的也是这个你知道jquery的那个
    类似狗狗搜索的插件吗?
    jquery.autocomplete.js
    去搜索看下里面是怎么处理的
      

  2.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <script language="javascript">
    function F()
    {
    document.getElementById("B").innerHTML =  document.getElementById("A").value;
    }
    </script></head><body>
    <input id="A" type="text" onkeydown="F()"> 
    <span id="B"> </span> 
    </body>
    </html>
    不觉得慢啊