Created
August 17, 2023 17:08
-
-
Save Tynael/482a453bbe2bff9b5005d77d24c9df0f to your computer and use it in GitHub Desktop.
Detect User's Browser and Operating System Using JavaScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| navigator.userAgentData | |
| // Returns | |
| { | |
| "brands": [ | |
| { | |
| "brand": "Chromium", | |
| "version": "116" | |
| }, | |
| { | |
| "brand": "Not)A;Brand", | |
| "version": "24" | |
| }, | |
| { | |
| "brand": "Brave", | |
| "version": "116" | |
| } | |
| ], | |
| "mobile": false, | |
| "platform": "Windows" | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code used for https://neutrondev.com/detect-users-browser-os-using-javascript/