Determining Client Capabilities

This code demonstrates how to determine the capabilities of a client browser from the resolution to the user language.

<head><title>Client Capabilities</title>
<body style="font-family:verdana;font-size:11px">
<u><b>Client Capabilities</b></u><br>
<script language="javascript1.2">
   "Vertical height of the screen :"+window.screen.availHeight+"<br>"+
   "Horizontal width of the screen :"+window.screen.availWidth+"<br>"+
   "Buffer depth of the screen :"+window.screen.bufferDepth+"<br>"+
   "Color depth of the screen :"+window.screen.colorDepth+"<br>"+
   "Vertical resolution of the screen :"+window.screen.height+"<br>"+
   "Horizontal resolution of the screen :"+window.screen.width+"<br>"+
   "Cookie enability :"+window.navigator.cookieEnabled+"<br>"+
   "Java enability :"+window.navigator.javaEnabled()+"<br>"+
   "CPU class :"+window.navigator.cpuClass+"<br>"+
   "Platform :"+window.navigator.platform+"<br>"+
   "System language :" +window.navigator.systemLanguage+"<br>"+
   "User language :"+window.navigator.userLanguage);

You might also like...


Peeyush Nigam More than 3yrs of practical and job experience in IT Industry. Currently running own ASP center in city KANPUR - INDIA [url=""]PARI WEB SERVICES™[/url] U may [email="webmaste...


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity.” - Dennis Ritchie