ValuesThe navigator.userAgent property returns a string. - Firefox returns "Mozilla 5.0" followed by your operating system, system language, Gecko rendering engine version number, build date, browser name, and browser version. Example: "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4"
- Internet Explorer returns "Mozilla 4.0 (compatible;" followed by your browser name and version, operating system and version, and various installed system components. Example: "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)"
- Safari returns ...
- Opera returns "Opera/" followed by your browser version, operating system and version, and browser language. Example: "Opera/9.21 (Windows NT 5.1; U; en)"
This property is read-only. UsageMost browsers provide options or extensions that allow you to change the user-agent string your browser sends when it requests resources from a server. Web developers should not rely on the value of the navigator.userAgent property. Browser compatibilityCompatibility table legend Further reading
|