Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

Rated
Read 18,306 times

Related Categories

Determining Client Capabilities

Peeyush

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>

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="webmaster@avenues-india.com"]Email [/email] to me.

Comments

  • enabling javascript

    Posted by jampath on 25 Aug 2005

    Hi all,

    i need the logic for enabling javascript option on client browser in Asp.net , if any body disables javscript option on their browsers then automatically our program enable the option aga...