Skip to content

Instantly share code, notes, and snippets.

@deanshub
Last active December 11, 2015 14:18
Show Gist options
  • Save deanshub/4613152 to your computer and use it in GitHub Desktop.
Save deanshub/4613152 to your computer and use it in GitHub Desktop.
javascript: browser detect
Detect Safari (if( $.browser.safari)),
Detect IE6 and over (if ($.browser.msie && $.browser.version > 6 )),
Detect IE6 and below (if ($.browser.msie && $.browser.version <= 6 )),
Detect FireFox 2 and above (if ($.browser.mozilla && $.browser.version >= '1.8' ))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment