Is there a way to prevent Internet Explorer from accessing the web application?
In fact, I wouldn’t mind displaying a static page informing them to download Firefox. I want to stop supporting IE, but I’m not sure the best approach.
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.
There are basically three ways to detect the browser.
not be used, although there are some cases where it might be okay.
when executing javascript code and is a good thing to do in order to
make sure objects exist before you try to use them. There are some
objects that might be exclusively defined in IE, but there is
a chance that some other browser will have the object defined as
well.
you are looking specifically for IE (conditional comments only apply
to IE). This option will also give you the ability to target certain
versions of IE reliably.
Here is an example that would redirect if the browser is IE <= 7.