In this example, we have learn how to Detect Screen Details using Screen Object in JavaScript.
Detacting Screen Details using Screen Object Example
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Detecting Screen Details using Screen Object Example</title>
<script language="javascript">
document.write("Your Screen Resolution is: <br>");
document.write(window.screen.width + "x" +window.screen.height);
document.write("</b><br>");
document.write("Available view area of screen is: <br>");
document.write(window.screen.availWidth + "x" + window.screen.availHeight);
document.write("</b><br>");
document.write("Color depyh of your Screen is: <br>");
document.write(window.screen.colorDepth);
document.write("</b><br>");
document.write("Buffer depth area is: <br>");
document.write(window.screen.bufferDepth);
document.write("</b><br>");
document.write("DeviceXDPI of your screen is: <br>");
document.write(window.screen.deviceXDPI);
document.write("</b><br>");
document.write("DeviceYDPI of your screen is: <br>");
document.write(window.screen.deviceYDPI);
document.write("</b><br>");
document.write("Logical XDPI of your screen is: <br>");
document.write(window.screen.logicalXDPI);
document.write("</b><br>");
document.write("Logical YDPI of your screen is: <br>");
document.write(window.screen.logicalYDPI);
document.write("</b><br>");
document.write("FontSmoothingEnable of your screen is: <br>");
document.write(window.screen.fontSmoothingEnabled);
document.write("</b><br>");
document.write("PixelDepth of your screen is: <br>");
document.write(window.screen.pixelDepth);
document.write("</b><br>");
document.write("UpdateInterval of your screen is: <br>");
document.write(window.screen.updateInterval);
document.write("</b>");
</script>
</head>
<body>
</body>
</html>
0 comments:
Post a Comment