---
schema_version: "1"
id: 4e9ffc45e1b90f6b91b81161ce9675e541280e41310f8cb68e2c557f60606c2f
title: IsCHTMLBrowser
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_httpIsCHTMLBrowser.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_httpIsCHTMLBrowser.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 83529d03f58b579a0b3af0bbfbcc4bb16603dd69b72b87cf285c37c8dcf20c16
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# IsCHTMLBrowser

## Overview

Indicates whether the passed-in user agent value represents a CHTML browser. CHTML browsers, such as those found on feature phones, use a modified version of HTML to display information about smaller screens with fewer resources than smartphones. This function returns a value of true or false indicating whether the browser uses CHTML. Use this value to determine whether or not to display CHTML content.

### Syntax

IsCHTMLBrowser(1)

### Function Properties

<!--complex table-->

| Ordinal | Type   |              | Description                                      |
| ------- | ------ | ------------ | ------------------------------------------------ |
| **1**   | string | **Required** | Value indicating the browser using by the device |

## Example

This sample code evaluates the provided user-agent value and returns the appropriate value depending on the browser:

```
Platform.Response.Write(Platform.Request.UserAgent);
Platform.Response.Write("
Is CHTML: ");
Platform.Response.Write(Platform.Function.IsCHTMLBrowser(Platform.Request.UserAgent));
```
