Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
</body>
</html>
 
var obj = {'window.devicePixelRatio':window.devicePixelRatio,'screen.deviceXDPI / screen.logicalXDPI':screen.deviceXDPI / screen.logicalXDPI,
        
           'window.outerWidth / window.innerWidth':window.outerWidth / window.innerWidth,
           'document.documentElement.offsetHeight / window.innerHeight':document.documentElement.offsetHeight / window.innerHeight,
        
           'window.top.outerWidth / window.top.innerWidth':window.top.outerWidth / window.top.innerWidth}
                       
        function print(obj){
          var s = '';
          for(var key in obj){
            s+=key;
            s+=' : ';
            s+=obj[key];
            s+='\n\r'
          }
          document.write(s)
          
        }
print(obj)
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers