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

In today’s digital world, just having a website is not enough. You need people to…
Learn how to track website performance with the upgraded Search Console Insights — a must-have…
Discover Free & Budget-Friendly WordPress Themes to Build Stunning Websites Without Overspending Creating a professional…
In today’s ultra-competitive eCommerce world, launching a Shopify store is easy. But building a branded,…

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!