is there a way to disable a certain script for all ie browsers?
Share
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.
You can make use of conditional compilation to determine if the client is using MSIE.
which can be used as
Only in IE, the
!will be compiled and taken in the expression, resulting in a new expression!false, which is logicallytrue. This works better than$.browser.msiebecause it can be fooled by the useragent and also better thandocument.allbecause it would affect certain Opera versions as well.That said, what is it you’re trying to disable? You can on the other hand also make use of feature detection. Here’s a discussion about this: Browser detection versus feature detection