Browser Detection

+1 Steven the awesome · September 12, 2014
Hello does someone know how to detect a browser with javascript. I know I have to use navigator.userAgent but it gave me the wrong information.

Post a Reply

Replies

Oldest  Newest  Rating
+2 Franz Schmidt · September 12, 2014
http://www.javascripter.net/faq/browsern.htm
+2 Predrag Kostic · September 12, 2014
Franz gave a correct answer but I thought I'd just precise:
var browserName = navigator.appName;

This is what I know of, however the link Franz posted is much more detailed and in depth with a lot of more methods.
  • 1

Javascript

107,196 followers
About

A scripting language that is added to standard HTML to create interactive effects, apps, games for the browser.

Links
Moderators