2

how to check the browser $.browser.mozilla is not working , Even IE returns true for this

Arjun
  • 2,159
  • 1
  • 17
  • 26
  • check this: http://pupunzi.open-lab.com/2013/01/16/jquery-1-9-is-out-and-browser-has-been-removed-a-fast-workaround/ – Aru Jan 27 '15 at 07:30
  • You may want to consider doing feature detection instead - see here: http://stackoverflow.com/questions/1294586/browser-detection-versus-feature-detection – Chase Jan 27 '15 at 07:31
  • try this: http://code.jquery.com/jquery-migrate-1.2.1.min.js – Aru Jan 27 '15 at 07:31

1 Answers1

0

You need to include the jQuery browser plugin for the above code to work. The detailed documentation is available here

jQuery Browser Plugin

After this you can simply use

$.browser.name 

to get the name of the browser.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Kaustav Banerjee
  • 275
  • 1
  • 10