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