What is Google Chromes user agent string?
Google Chrome’s user agent string is: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.X.Y.Z Safari/525.13. Google Chrome uses the WebKit rendering engine, which is shared by other browsers such as Apple’s Safari. Web pages should look the same in Google Chrome as they will in these other WebKit-based browsers. You can look for webkit in user agent strings to target these browsers, rather than a specific browser name (such as Google Chrome or Safari).
Danger: Changing the way your website renders based on the user agent string may sound easy, but in reality it’s one of the main causes of cross-browser bugs in websites. Please consider using object detection or other methods before resorting to parsing the user agent string. Google Chrome’s user agent string is (on Windows): Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/A.B (KHTML, like Gecko) Chrome/X.Y.Z.W Safari/A.B. Google Chrome uses the WebKit rendering engine, which is shared by other browsers such as Apple’s Safari. Web pages should look the same in Google Chrome as they will in these other WebKit-based browsers. It’s preferable to check for the presence of the WebKit rendering engine, rather than checking for a specific browser name (such as Google Chrome or Safari). We recommend using the following code: var isWebKit = navigator.userAgent.indexOf(“WebKit”) > -1; If you need to work around a bug in a certain browser version, or check for the existence of a web