www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
 clientInformation Object
clientInformation Object

Contains information about the browser.

Members Table

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

Attributes/Properties
Show:
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 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
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG