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>
  <form id="form">
    <input type="text" id="txtname" value="Example text Here" tabindex="1">
    
  </form>
  
</body>
</html>
 
body, input {
  font-size: 50px;
}
input {
  width: 80%;
}
 
var txtname = document.getElementById('txtname');
txtname.onfocus = function (e) {
  setTimeout(doSelect, 0);
};
function doSelect() {
  txtname.select();
}
Output

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

Dismiss x
public
Bin info
ImpressiveWebspro
0viewers