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>
  <p id="target">This is the paragarph</p>
</body>
</html>
 
(function() {
  var p = document.getElementById("target");
  var style = p.currentStyle || window.getComputedStyle(p);
  
  display("Current marginTop: " +
          style.marginTop);
  
  function display(msg) {
    var p = document.createElement('p');
    p.innerHTML = String(msg);
    document.body.appendChild(p);
  }
  
})();
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers