文本框改变事件(不用失去焦点)
<script>
var OldValue = "";
function txt_Change(NewValue)
{
if (OldValue != NewValue)
{
alert(NewValue);
OldValue = NewValue;
}
}
</script>
<body">
<input type="text" onKeyUp="txt_Change(this.value)">
</body>

浙公网安备 33010602011771号