Javascript : Get operating system and browser information
Problem :
You need to find out your visitor's browser and os version. How to do that with Javascript or Jquery?
Solution :
The existing Javascript solution floating around forums can be easily spoofed and some have not been updated for years. To detect the visitors' browser accurately, please use WhichBrowser. It can detect mobile based browsers as well.
Follow the guidelines on how to install WhichBrowser at Github ( https://github.com/WhichBrowser/WhichBrowser#how-to-use-it )
and after installations... to detect the visitors' browser :
Browsers.browser
// Chrome 27
and to detect the visitors' OS version.
Browsers.os
// Mac OS X 10.8.4
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+9.5k Golang : Post data with url.Values{}
+5.4k Golang : Getting Echo framework StartAutoTLS to work
+4.1k Golang : Get Hokkien(福建话)/Min-nan(閩南語) Pronounciations
+5.7k Golang : Rename part of filename
+7k Golang : Find correlation coefficient example
+30.5k Golang : Call a function after some delay(time.Sleep and Tick)
+7.5k Golang : Read file with ioutil
+4.4k Golang : Find change in a combination of coins example
+15.2k Golang : Iterating Elements Over A List
+3.2k Chrome : How to block socketloop.com links in Google SERP?
+15.4k Golang : Calculate entire request body length during run time
+26.8k Golang : Login(Authenticate) with Facebook example