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.

$.browser.msie not a function.

on the browser console.

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

(navigator.userAgent.toLowerCase().indexOf('msie 6') != -1) && (navigator.userAgent.toLowerCase().indexOf('msie 7') == -1)

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

(navigator.userAgent.toLowerCase().indexOf('msie 7') != -1)

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

Thanks, Enjoy. you can comment here.

About the author: ShareSoftAdmin

Leave a Reply

Your email address will not be published.