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>
Comments