Namespace goog.userAgent.product

code »
Show:

Global Functions

Returns
The string that describes the version number of the user agent product. This is a string rather than a number because it may contain 'b', 'a', and so on.

Run regexp's exec() on the userAgent string.

Parameters
re: !RegExp
Regular expression.
Returns
A result array, or null for no match.

Return the first group of the given regex.

Parameters
re: !RegExp
Regular expression with at least one group.
Returns
Contents of the first group or an empty string if no match.

Right now we just focus on Tier 1-3 browsers at: http://wiki/Nonconf/ProductPlatformGuidelines As well as the YUI grade A browsers at: http://developer.yahoo.com/yui/articles/gbs/

Whether the user agent product version is higher or the same as the given version.

Parameters
version: (string|number)
The version to check.
Returns
Whether the user agent product version is higher or the same as the given version.

Global Properties

Whether the code is running on the default browser on an Android phone.

Whether the code is running on the Camino web browser.

Whether the code is running on the Chrome web browser.

Whether the code is running on the Firefox web browser.

Whether the code is running on an IE web browser.

Whether the code is running on an iPad.

Whether the code is running on an iPhone or iPod touch.

Whether the code is running on the Opera web browser.

Whether we know the product type at compile-time.

Whether the code is running on the Safari web browser.

The version of the user agent. This is a string because it might contain 'b' (as in beta) as well as multiple dots.

Whether the code is running on the default browser on an Android phone.

Whether the code is running on the Camino web browser.

Whether the code is running on the Chrome web browser.

Whether the code is running on the Firefox web browser.

Whether the code is running on an iPad

Whether the code is running on an iPhone or iPod touch.

Whether the code is running on the Safari web browser.

Compiler Constants