Don't use onChange events for checkboxes
If you want to fire a javascript event when a checkbox is checked in an HTML form, you may be tempted to use the onChange event for the checkbox form element. Don't! While this will work just fine for Firefox and Safari, it will not work consistently for Internet Explorer. If you want to make sure that the event is fired consistently, use the onClick event instead. This works fine across all browsers.
| Rating: | 100% positive, 3 total Votes |
| Categories: | HTML DOM javascript web |
| Added: | on Oct 01, 2007 at 4:01 pm |
| Added By: | an anonymous user |
| Searches: | event html javascript dom web |

