clientInformation object
Contains information about the browser.
Members
The clientInformation object has these types of members:
Methods
The clientInformation object has these methods.
| Method | Description |
|---|---|
| javaEnabled |
Returns whether Java is enabled. |
| taintEnabled |
Returns whether data tainting is enabled. |
Properties
The clientInformation object has these properties.
| Property | Description |
|---|---|
|
Retrieves the code name. | |
|
Retrieves the application's minor version value. | |
|
Retrieves the name of the client. | |
|
Retrieves the platform and version of the application. | |
|
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.
| |
|
Retrieves whether client-side persistent cookies are enabled. Persistent cookies are those that are stored on the client-side computer. | |
|
Retrieves a string denoting the CPU class. | |
|
Retrieves a value indicating whether the system is online. | |
|
Retrieves the name of the user's operating system. | |
|
Retrieves the default language used by the operating system. | |
|
Retrieves a string equivalent to the HTTP user-agent request header. | |
|
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>