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