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="result"></div>
  <script src="http://code.jquery.com/jquery-git.js"></script>
</body>
</html>
 
var $result = $("#result");
function log() {
  var args = Array.prototype.slice.call( arguments, 0 ),
      i = 0,
      len = args.length;
  for ( ; i < len; i++ ) {
    $result.append("<span>" + (args[i] + "").replace( /\n/g, "<br>" ) + "</span> ");
  }
  $result.append("<br>");
}
var $win = $(window),
    $doc = $(document);
log( "window width: ", $win.width() );
log( "window height: ", $win.height() );
log( "document width: ", $doc.width() );
log( "document height: ", $doc.height() );
Output

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

Dismiss x
public
Bin info
timmywilpro
0viewers