IE doesn't support addEventListener
until version 9, so you have to use attachEvent
, here's an example:
if (!someElement.addEventListener) {
_checkbox.attachEvent("onclick", setCheckedValues);
}
else {
_checkbox.addEventListener("click", setCheckedValues, false);
}