$(window).load(function () {
if($.browser.msie && $.browser.version=="6.0") {
// do stuff
}
});
Just realized that $.browser has been depreciated in 1.3. What is the new method for detecting IE, specially IE6.
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.
The jQuery documentation for
jQuery.browsershows the following warning. (Emphasis is mine.)The documentation page also says:
Even
jQuery.support, which was suggested from the old documentation has the following warning. (Emphasis is mine.)The previous documentation for
jQuery.supportreported the following properties and values.$.support.boxmodelisfalsein IE 6, and 7.$.support.cssFloatisfalsefor IE 6, 7 and 8; it istruein IE 9.$.support.leadingWhitespaceisfalsefor IE 6, 7, and 8.$.support.objectAllis currentlyfalsefor IE 6, 7, and 8.