Detect the client's screen : Screen « Window Browser « JavaScript DHTML






Detect the client's 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>




           
       








Related examples in the same category

1.Screen update Interval
2.Screen 'width' Example
3.Screen font Smoothing Enabled
4.Screen 'colorDepth' Example
5.Screen 'bufferDepth' Example
6.'height-2' Example
7.'logicalYDPI' Example
8.'logicalXDPI' Example
9.'deviceXDPI' Example
10.'deviceYDPI' Example
11.Screen 'availWidth'
12.Screen 'availTop'
13.Screen 'availHeight'
14.Screen availLeft
15. Displaying the Properties of the Screen Object
16.Using the const Keyword