Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://yui.yahooapis.com/3.7.2/build/yui/yui-min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <div class="container">
    <div id="inner" style="margin: 20px; padding: 20px; border: 1px solid black; width: 40px; height: 40px;">Inner</div> 
  </div>
  <div id="output"></div>
  <script type="text/javascript">
    YUI().use('node', function(Y) {
      Y.one('#output').append('jQuery .outerHeight: ' + $('#inner').outerHeight() + '<br>');
      Y.one('#output').append('YUI .get("offsetHeight"): ' + Y.one('#inner').get('offsetHeight') + '<br>');
    });
  </script>
</body>
</html>
Output

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

Dismiss x
public
Bin info
jshirleypro
0viewers