The following code will detect the IE version installed on the computer. You can modify the results as needed to suit your needs. I made some comments in the code.
I needed this to detect IE 6 and try to get the user to upgrade to version 7 or 8. Some of my code works under 6 but I don’t get the same results as in 7 or 8. I did not want to rely on a 3rd party utility.
Just copy and paste in a new page and run under IE only. It will not work with Firefox correctly.
I hope someone finds this useful.