'logicalYDPI' Example : logicalYDPI « Javascript Properties « JavaScript Reference

'logicalYDPI' Example

    
<html>
<body>
<script language="JavaScript">
function function1() {
    var m = screen.logicalXDPI;
    var n = screen.logicalYDPI;
    alert("Screen XDPI =\n"+m); 
    alert("Screen YDPI =\n"+n); 
} 
</script>
<input type="button" value="Click me" onclick="function1();">
</body>
</html>

    
      
      








Related examples in the same category

1.'logicalYDPI' Syntax and Note
2.'logicalYDPI' is applied to