JavaScript Reference/Javascript Properties/deviceYDPI
Версия от 18:30, 25 мая 2010; (обсуждение)
"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