HTML DOM deviceXDPI Property
Complete Screen Object Reference
Definition and Usage
The deviceXDPI property returns the number of horizontal dots per inch of the
display screen.
Syntax
Example
<html>
<body>
<script type="text/javascript">
document.write("<p>Device XDPI: ")
document.write(screen.deviceXDPI + "</p>")
</script>
</body>
</html>
|
Try-It-Yourself Demos
Detect details about the client's screen
Complete Screen Object Reference
|