goog.userAgent.product
Properties
ANDROID → boolean
boolean
Whether the code is running on AOSP browser or WebView inside a pre KitKat Android phone or tablet.
CHROME → boolean
boolean
Whether the code is running on any Chromium-based web browser on any platform or AOSP browser or WebView in a KitKat+ Android phone or tablet.
EDGE → boolean
boolean
Whether the code is running on an Edge web browser (EdgeHTML based).
FIREFOX → boolean
boolean
Whether the code is running on the Firefox web browser.
IE → boolean
boolean
Whether the code is running on an IE web browser.
IPAD → boolean
boolean
Whether the code is running on an iPad.
IPHONE → boolean
boolean
Whether the code is running on an iPhone or iPod touch.
iPod touch is considered an iPhone for legacy reasons.
OPERA → boolean
boolean
Whether the code is running on the Opera web browser.
SAFARI → boolean
boolean
Whether the code is running on the desktop Safari web browser. Note: the legacy behavior here is only true for Safari not running on iOS.
VERSION → string
string
The version of the user agent. This is a string because it might contain 'b' (as in beta) as well as multiple dots.
Compiler Constants
goog.userAgent.product.ASSUME_ANDROID → boolean
boolean
Whether we know at compile-time that the product is an AOSP browser or WebView inside a pre KitKat Android phone or tablet.
goog.userAgent.product.ASSUME_CHROME → boolean
boolean
Whether the code is running on the Chrome web browser on any platform or AOSP browser or WebView in a KitKat+ Android phone or tablet.
goog.userAgent.product.ASSUME_FIREFOX → boolean
boolean
Whether the code is running on the Firefox web browser.
goog.userAgent.product.ASSUME_IPAD → boolean
boolean
Whether we know at compile-time that the product is an iPad.
goog.userAgent.product.ASSUME_IPHONE → boolean
boolean
Whether we know at compile-time that the product is an iPhone.
goog.userAgent.product.ASSUME_SAFARI → boolean
boolean
Whether the code is running on the Safari web browser.