Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app="jsbin">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body ng-controller="mainCtrl">
  <input id="tofs" type="text" ng-blur="doTheMacarena()"></input>
  <input type="text"></input>
</body>
</html>
 
angular.module('jsbin', [])
.controller('mainCtrl', ['$scope', function($scope){
  $scope.doTheMacarena = function(self){
 document.getElementById('tofs').focus();
  };
}]);
//YOU CANNOT EVER SELECT THE 2ND INPUT BOX
Output 300px

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

Dismiss x
public
Bin info
madebysidpro
0viewers