Namespace goog.labs.userAgent.browser

code »
Show:

Global Functions

Determines IE version. More information: http://msdn.microsoft.com/en-us/library/ie/bg182625(v=vs.85).aspx#uaString http://msdn.microsoft.com/en-us/library/hh869301(v=vs.85).aspx http://blogs.msdn.com/b/ie/archive/2010/03/23/introducing-ie9-s-user-agent-string.aspx http://blogs.msdn.com/b/ie/archive/2009/01/09/the-internet-explorer-8-user-agent-string-updated-edition.aspx

Parameters
userAgent: string
the User-Agent.

Determines Opera version. More information: http://my.opera.com/ODIN/blog/2013/07/15/opera-user-agent-strings-opera-15-and-beyond

Parameters
userAgent: string
The User-Agent.
Returns
The browser version or empty string if version cannot be determined. Note that for Internet Explorer, this returns the version of the browser, not the version of the rendering engine. (IE 8 in compatibility mode will return 8.0 rather than 7.0. To determine the rendering engine version, look at document.documentMode instead. See http://msdn.microsoft.com/en-us/library/cc196988(v=vs.85).aspx for more details.)

Nearly all User-Agents start with Mozilla/N.0. This looks at the second tuple for the actual browser version number.

Parameters
versionTuples
Returns
The version or empty string if it cannot be determined.
Returns
Whether the user's browser is the Android browser.
Returns
Whether the user's browser is Chrome.
Returns
Whether the user's browser is Firefox.
Returns
Whether the user's browser is IE.
Returns
Whether the user's browser is Opera.
Returns
Whether the user's browser is Safari.

For more information, see: http://docs.aws.amazon.com/silk/latest/developerguide/user-agent.html

Returns
Whether the user's browser is Silk.
Parameters
version: (string|number)
The version to check.
Returns
Whether the browser version is higher or the same as the given version.
Returns
Whether the user's browser is the Android browser.
Returns
Whether the user's browser is Chrome.
Returns
Whether the user's browser is Firefox.
Returns
Whether the user's browser is IE.
Returns
Whether the user's browser is Opera.
Returns
Whether the user's browser is Safari.