JavaScript Reference/Javascript Properties/deviceXDPI
"deviceXDPI" Example
<html>
<body>
<button onclick="alert(screen.deviceXDPI);">device XDPI</button>
<button onclick="alert(screen.deviceYDPI);">device YDPI</button>
</body>
</html>
"deviceXDPI" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |screen |
+----------------+--------------------------------------------------------------+
"deviceXDPI" Syntax and Note
Note:
Read-only property.
Returns the dpi (dots per inch) for the screen height.
Syntax:
screen.deviceXDPI