<form name="form1" method="post" action="">
  <input type="text" name="textfield" onBlur="js()">
</form>
js()为你的js程序

解决方案 »

  1.   

    <form name="form1" method="post" action="" ID="Form1">
    <input type="text" name="textfield" onBlur="check(this)" onfocus="this.oldValue=this.value">
    </form>
    <script language=javascript>
    function check(o){
    if(o.value!=o.oldValue){
    alert("值已经改变!原值:" + o.oldValue + "新值:" + o.value);
    }

    }
    </script>
      

  2.   

    <input type="text" name="textfield" onBlur="if(this.value!='') check(this)" >
      

  3.   

    <input type="text" name="textfield" onchange="if(this.value!='') check(this)" >