文本框当输入内容且离开时,激发一事件,js如何写啊? <form name="form1" method="post" action=""> <input type="text" name="textfield" onBlur="js()"></form>js()为你的js程序 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <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> <input type="text" name="textfield" onBlur="if(this.value!='') check(this)" > <input type="text" name="textfield" onchange="if(this.value!='') check(this)" > ntko错误 ext combobox 当数据库值为NULL时显示异常 请教各位大侠 求教网页JS有超链接代码,粘贴到其它编辑器里出现乱码 js obj.attachEvent() 怎么样添加参数 急~~~~ 求个简单的实现水印的js代码? 代码简化 关于网站浏量统计 如何使除运算的结果保留小数点两位数!急! 怎样用JAVASCRIPT语句删除TABLE的一行? 百度首页js动效怎么实现啊? XMLHTTP的问题 常用效果求教
<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>