uncheck checkbox and disable in IE8


Is there a way for me to detect if a user is using IE8 and if so disable and uncheck a checkbox?

Who is Participating?
Snarf0001Connect With a Mentor Commented:
You can use conditional comments.  Only IE recognizes them, other browsers assume they're simple comments and ignore.

<!--[if lte IE 8]>
    window.onload = function () {
        var chk = document.getElementById("blah");
        chk.checked = false;
        chk.disabled = true;
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.