---
schema_version: "1"
id: 4b149ed220d66e79066b13fb80c9343d5ce4b385dbb9c34eabfd45bc05e29355
title: $Browser
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/expr/expr-browser-value-provider.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/expr-browser-value-provider.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: ee58622a1b210cf8fc0527dfff335d03076e8f17e2d43576b0bc8aa85147d97d
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# `$Browser`

The `$Browser` global value provider returns information about the hardware and operating system of the browser accessing the application.

|Attribute|Description|
|---------|-----------|
|`formFactor`|Returns a `FormFactor` enum value based on the type of hardware the browser is running on: `DESKTOP` for a desktop client, or `PHONE` for a phone including a mobile phone with a browser and a smartphone.|
|`isAndroid`|Indicates whether the browser is running on an Android device (`true`) or not (`false`).|
|`isIOS`|Due to changes made by Apple, `isIOS` is deprecated because it no longer distinguishes between iPad and MacOS desktop.|
|`isIPad`|Due to changes made by Apple, `isIPad` is deprecated because it no longer distinguishes between iPad and MacOS desktop.|
|`isIPhone`|Not available in all implementations. Indicates whether the browser is running on an iPhone (`true`) or not (`false`).|
|`isPhone`|Indicates whether the browser is running on a phone including a mobile phone with a browser and a smartphone (`true`), or not (`false`).|
|`isTablet`|Indicates whether the browser is running on a tablet with Android 2.2 or later (`true`) or not (`false`).|
|`isWindowsPhone`|Indicates whether the browser is running on a Windows phone (`true`) or not (`false`). This attribute detects only Windows phones and doesn’t detect tablets or other touch-enabled Windows 8 devices.|

**note:** Due to changes made by Apple, `isTablet` is deprecated for iOS devices because `$Browser` no longer distinguishes between iPad and MacOS desktop.

This example shows usage of the `$Browser` global value provider.

<!-- otherprops: set_clipboard -->
```nolang
<aura:component>
    {!$Browser.isTablet}
    {!$Browser.isPhone}
    {!$Browser.isAndroid}
    {!$Browser.formFactor}
</aura:component>

```

Similarly, you can check browser information in a client-side controller using `$A.get()`.

<!-- otherprops: set_clipboard -->
```javascript
({
    checkBrowser: function(component) {
        var device = $A.get("$Browser.formFactor");
        alert("You are using a " + device);
    }
})
```

