MobileESP API: JavaScript

Support for client-side JavaScript processing on most phones is very poor to completely non-existent. Generally speaking, JavaScript is probably reliable only for distinguishing between devices in the iPhone Tier. So if you want to know whether your visitor is one of these devices, the JavaScript probably works fine: iPhone, Android, WebOS, and a few others such as Garmin Nuvifone and late-model Symbian S60 devices. And Windows Phone 7, when the devices are launched in late 2010.

As a result, we don’t recommend using the JavaScript for detecting any other mobile device types. This list includes BlackBerry, Windows Mobile (PocketPC and Smartphone), and practically all feature phones. Instead, usage of one of the server-side platforms (PHP, Java, ASP.NET) is recommended to detect for these types of devices.

New! Demo the JavaScript API using your device.

GLOBAL INFO

DETECTION METHOD RETURN VALUES

All DetectXXX() methods return the booleans TRUE or FALSE (when supported!).

DETECTION METHODS: Platforms and OSes

Assume that all of the following methods probably won’t work. If they work, they probably work only for iPhone Tier devices. Some methods have additional notes.

DETECTION METHODS: Classes of Devices

These methods are also poorly supported among mobile devices.

DETECTION METHODS: Device Tiers

These methods group mobile phones into three broad tiers based on the capabilities of their browsers. See the regular API notes to see a list of devices falling into each tier.