Mega Code Archive

 
Categories / JavaScript DHTML / Window Browser
 

Detect the clients screen

<html> <body> <script type="text/javascript">     document.write("Screen resolution: ")     document.write(screen.width + "*" + screen.height)     document.write("<br>")     document.write("Available view area: ")     document.write(screen.availWidth + "*" + screen.availHeight)     document.write("<br>")     document.write("Color depth: ")     document.write(screen.colorDepth)     document.write("<br>") </script> </body> </html>