What is the best way to detect Internet Explorer 6 using JavaScript?
If browser == IE6 {
alert('hi');
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Conditional comments are a good alternative:
Edit: If you’re still looking to support IE 6 in 2017 or after … well my heart goes out to you. The answer to this question in 2017 is really not to worry about IE 6. It’s not a supported browser anymore. Any operating system that can run this browser and the browser itself are not getting security updates anymore. This means users using this software are at great risk of being exploited. This is a big problem for people who can’t afford to upgrade.