textbox 控件本身有 失焦事件   但我加了一句onkeyup="this.value=this.value.replace(/[^\d]/g,'') "后失焦控件就不执行...
请各位高手给个解决的办法...

解决方案 »

  1.   

    经测试不存在楼主所说的问题<html>
    <head>
    <title></title>
    <script language="javascript">
    </script>
    </head>
    <body>
    <input type="text" value="a" onBlur="alert(this.value);" onkeyup="this.value=this.value.replace(/[^\d]/g,'');">
    </body>
    </html>  
      

  2.   

    嘛意思,失去输入焦点,就不会触发keyup和keydown事件。
      

  3.   

    不好意思. 我的问题不在于这里. this.TextBox1.Attributes.Add("onblur","javascript: var a='<%=ss()%>'");
    我的问题是 本来这样写是完全可以执行的. 后来 也就是因为加了一个onkeyup="this.value=this.value.replace(/[^\d]/g,'') "所以就不调后台函数了...