HTML DOM logicalXDPI Property

Definition and Usage

The logicalXDPI property returns the number of standard points per inch in the horizontal direction of the display screen.

Syntax

screen.logicalXDPI

Example

<html>
<body>
<script type="text/javascript">
document.write("<p>Logical XDPI: ")
document.write(screen.logicalXDPI + "</p>")
</script>
</body>
</html>