JavaScript Reference/Javascript Properties/deviceXDPI

Материал из Web эксперт
Перейти к: навигация, поиск

"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