摘要: function clickMe(){ var o=document.getElementById("txt"); o.focus(); o.value="hello world!";//自动赋值以后文本框已经change,理论上要发生onchange事件 //但是如果不加以下这句是不会触发onchange事件的 o.fireEvent("onchange");}function txtChange(){ alert("同时触发了onchange事件");} 阅读全文
posted @ 2012-09-03 19:30 牧马 阅读(20097) 评论(0) 推荐(0) 编辑