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>
    <div id="a"></div>
    <label id="b"></label>
    <label id="c"></label>
    <label id="d"></label>
</body>
</html>
 
var elemento = document.getElementById("a"),
    height = getComputedStyle(elemento).height,
    width = getComputedStyle(elemento).width,
    display = getComputedStyle(elemento).display,
    salida1 = document.getElementById("b"),
    salida2 = document.getElementById("c"),
    salida3 = document.getElementById("d");
 
salida1.innerHTML = "Height: " + height;
salida2.innerHTML = "Width: " + width;
salida3.innerHTML = "Display: " + display;
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
Alexis88pro
0viewers