Nageswaran
Nageswaran

Reputation: 7661

How can I get information about the user's browser via javascript?

I am developing a website. I want to get as much as possible details about the end user who is viewing the website. I know some basic information like browser name, Operating system we can get it from http request. Want to know what else we can get.

Is it possible to get browser installed path?
Operating system logged user name? etc...

List of informations?

Upvotes: 0

Views: 3462

Answers (1)

Matthew Lock
Matthew Lock

Reputation: 13486

You can't get the logged in user name or browser installed path (huge security risk!), but you can get information about the browser and operating system and so on in javascript via the browser's navigator object

The useragent property is a bit cryptic, so you might like to use a library to parse it for you such as UAParser.js

Upvotes: 2

Related Questions