Determining Client Capabilities

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

<Html>
<head><title>Client Capabilities</title>
</head>
<body style="font-family:verdana;font-size:11px">
<u><b>Client Capabilities</b></u><br>
<script language="javascript1.2">
<!--
   document.write(
   "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);
//-->
</script>
</body>
</html>

You might also like...

Comments

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

Contribute

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.

“Most software today is very much like an Egyptian pyramid with millions of bricks piled on top of each other, with no structural integrity, but just done by brute force and thousands of slaves” - Alan Kay