EN
Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.

clientInformation object

Contains information about the browser.

Members

The clientInformation object has these types of members:

Methods

The clientInformation object has these methods.

MethodDescription
javaEnabled

Returns whether Java is enabled.

taintEnabled

Returns whether data tainting is enabled.

 

Properties

The clientInformation object has these properties.

PropertyDescription

appCodeName

Retrieves the code name.

appMinorVersion

Retrieves the application's minor version value.

appName

Retrieves the name of the client.

appVersion

Retrieves the platform and version of the application.

browserLanguage

Retrieves the current operating system language.

Note  This property does not indicate the language or languages set by the user in Language Preferences, located in the Internet Options dialog box.

cookieEnabled

Retrieves whether client-side persistent cookies are enabled. 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.

 

Standards information

There are no standards that apply here.

Examples

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


<script type="text/javascript">
if (window.clientInformation.javaEnabled() == true )
    // Java is enabled; applets can run.
</script>

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


<script type="text/javascript">
if (window.clientInformation.userAgent.indexOf( "MSIE " ) > 0)
    // The browser is Microsoft Internet Explorer.
</script>

 

 

Mostra:
© 2014 Microsoft