DropDownList onchange=""
TextBox onchange=""
CheckBox onclick=""
RadioButton onclick=""
JavaScript: CheckBox onChange event is differently processed by IE and FF
Try to click the following buttons on IE and Firefox.
Using onchange
Using onclick
You have found the difference, right?
Internet Explorer only fires the onchange
event when the checkBox loses the focus (onblur
) while Firefox fires it immediately.
So you should be very careful to use onchange
event if you want to develop cross-browser application. However, it is often overlooked.
http://radicgg.spaces.live.com/Blog/cns!B6E0F8E5B316313B!371.entry?wa=wsignin1.0&sa=689750514
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。