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 on 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

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));
Last Updated: Jun 8, 2021