User agent sniffing
The navigator.userAgent property and several others loosely identify a browser. Selectively showing content based on the user agent string, also known as user agent sniffing, is unreliable. Consider using feature detection or user agent client hints instead.
Status
Baseline Widely Available (since 2019-03-20)
MDN documentation
Specifications
- HTML (#the-navigator-object), from HTML Workstream (WHATWG).
Browser support
- Chrome 4 Released on 2010-01-25
- Chrome Android 18 Released on 2012-06-27
- Edge 12 Released on 2015-07-29
- Firefox 3.5 Released on 2009-06-30
- Firefox for Android 4 Released on 2011-03-29
- Safari 10 Released on 2016-09-20
- Safari on iOS 10 Released on 2016-09-13
Web Platform Tests (WPT)
View the latest WPT test results for this featureView as JSON | Edit this feature | Report an issue | Web-features entry: source, dist