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
+7.5k Golang : Another camera capture GUI application with GTK and OpenCV
+5.9k Swift : substringWithRange() function example
+4.2k Python : Create Whois client or function example
+15.8k Golang : XML to JSON example
+2.7k Java : Get FX sentiment from website example
+14.7k Golang : Update database with GORM example
+4.2k PHP : See installed compiled-in-modules
+7.7k Golang : Find network service name from given port and protocol
+6.6k Setting $GOPATH environment variable for Unix/Linux and Windows
+8.2k Golang : Detect number of active displays and the display's resolution
+13.2k Golang : Reset buffer example
+16.1k Golang : Find smallest number in array