Web features explorer

User agent sniffing

Widely available
Tags: api

The navigator.userAgent read-only property returns the user agent string for the current browser. Selectively showing content based on the user agent string is unreliable. Consider using feature detection instead. To learn more, see Navigator: userAgent property, WorkerNavigator: userAgent property at MDN.

Compatibility