Public Function OnlyNumberAndDot(inKeyAscii As Integer) As Integer '函数说明:文本框只支持数字.小数点.退格符.负号.Del键 '入口说明: ' inKeyAscii 'Text 控件的 KeyPress 事件的 KeyAscii 参数 '出口说明: '返回值:inKeyAscii If inKeyAscii < 48 Or inKeyAscii > 57 Then '选取范围之内的 If (inKeyAscii <&g…
1.oninput,onpropertychange,onchange的用法 l onchange触发事件必须满足两个条件: a)当前对象属性改变,并且是由键盘或鼠标事件激发的(脚本触发无效) b)当前对象失去焦点(onblur): l onpropertychange的话,只要当前对象属性发生改变,都会触发事件,但是它是IE专属的: l oninput是onpropertychange的非IE浏览器版本,支持firefox和opera等浏览…