All Tech Tips

clientInformation Object

Contains information about the browser.

Members Table

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 in global offline mode.
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.
CollectionDescription
plugins Retrieves a collection of all embed objects within the document.
MethodDescription
javaEnabled Returns whether Java is enabled.
taintEnabled Returns whether data tainting is enabled.
ObjectDescription
userProfile Provides methods that allow a script to request read access to and perform read actions on a user's profile information.

Remarks

This object is available in script as of Microsoft Internet Explorer 4.0.

Examples

This example shows how to determine whether the userAgent of the browser contains "MSIE". If it does, the browser is 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


Copyright © 2006 alltechtips.com. All rights reserved.

This website and the materials and information you find on this website are provided "as is", without warranty of any kind, either express or implied, including without limitation any warranty for information, services, or products provided through or in connection with the service and any implied warranties of merchantability, fitness for a particular purpose, expectation of privacy or non-infringement.