Banner Image
Banner Image
Banner Image

JQuery – $.browser.msie Alternative – Fixed

I was worked for one of the project to fix in Jquery issue. It has problem after updated the Jquery script from 1.6 to 1.9. This Jquery upgrade on that website regarding to add new Sliders plugin for that website.

After updated that new Jquery version i got this below error on it.

[javascript]
$.browser.msie not a function.
[/javascript]

on the browser console.

So for this below method you can detect the IE6 Browsers all version.

[javascript]
(navigator.userAgent.toLowerCase().indexOf(‘msie 6’) != -1) && (navigator.userAgent.toLowerCase().indexOf(‘msie 7’) == -1)
[/javascript]

If you have to detect specifically IE7 you can use this below code

[javascript]
(navigator.userAgent.toLowerCase().indexOf(‘msie 7’) != -1)
[/javascript]

if the above code detect IE7 that value on that return 0 or Greater then 0

Thanks, Enjoy. you can comment here.

Blog

27/10/2025
The Rise of Atlas Browser: Why More Users Are Switching to a Privacy-First Web
In today’s digital world, almost everything we do — from searching for information to online…
24/10/2025
Understanding WordPress: A Simple Guide for Beginners in 2025
If you’ve ever wondered how people build websites without knowing how to code, the answer…
15/10/2025
Building a Robust eCommerce Website with Magento: A Complete Guide by Sharesoft
In today’s fast-moving digital world, building a strong online presence is more than just having…
11/10/2025
Why Custom Shopify Website Development Is the Key to Building a Scalable eCommerce Brand
Introduction: The Rise of Shopify in Modern eCommerce In today’s fast-paced digital marketplace, where customer…

Stay Ahead in Digital Innovation

Looking for expert tips, industry insights, and strategies to boost your digital presence? Subscribe to Sharesoft Technology’s weekly LinkedIn newsletter!