clientInformation Object

Contains information about the browser.

Members Table

The following table lists the members exposed by the clientInformation object.

Attributes/Properties
PropertyDescription
appCodeName Retrieves the code name of the browser.
appMinorVersion Retrieves the application's minor version value.
appName Retrieves the name of the browser.
appVersion Retrieves the platform and version of the browser.
browserLanguage Retrieves the current browser language.
cookieEnabled Retrieves whether client-side persistent cookies are enabled in the browser. Persistent cookies are those that are stored on the client-side computer.
cpuClass Retrieves a string denoting the CPU class.
onLine Retrieves a value indicating whether the system is online.
platform Retrieves the name of the user's operating system.
systemLanguage Retrieves the default language used by the operating system.
userAgent Retrieves a string equivalent to the HTTP user-agent request header.
userLanguage Retrieves the operating system's natural language setting.
Collections
CollectionDescription
plugins Retrieves a collection of all embed objects within the document.
Methods
MethodDescription
javaEnabled Returns whether Java is enabled.
taintEnabled Returns whether data tainting is enabled.
Objects
ObjectDescription
userProfile Obsolete. Provides methods that allow a script to request read access to and perform read actions on a user's profile information.

Examples

This example shows how to determine whether the userAgent of the browser contains "MSIE". If it does, the browser is Windows Internet Explorer.

<SCRIPT LANGUAGE="JScript">
if (window.clientInformation.userAgent.indexOf( "MSIE " ) > 0)
    // The browser is Microsoft Internet Explorer.
</SCRIPT>

This example shows how to determine whether the browser can run Java applets.

<SCRIPT LANGUAGE="JScript">
if (window.clientInformation.javaEnabled() == true )
    // Java is enabled; applets can run.
</SCRIPT>

Standards Information

There is no public standard that applies to this object.

Applies To

window, Window Constructor
Tags :


Page view tracker