User agent: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
Line 14: Line 14:


* [[UA/override|User Agent Override]]
* [[UA/override|User Agent Override]]
* [[Compatibility/UADetectionLibraries|User Agent Detection Libraries]]


[[Category:Web Compatibility]]
[[Category:Web Compatibility]]
[[Category:HTTP]]
[[Category:HTTP]]

Revision as of 19:22, 24 September 2013

User Agent string is a string which is visible in the HTTP headers of an HTTP client and in the navigator.userAgent object JavaScript for JS enabled client.

HTTP

For example on Firefox OS devices.

User-Agent: Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0

Browsers with JavaScript

var ua = navigator.userAgent;

Around this topic