2

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

Arjun
  • 2,039
  • 1
  • 15
  • 25
  • 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
  • 704,970
  • 168
  • 1,303
  • 1,425
Kaustav Banerjee
  • 265
  • 1
  • 10