Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<html>
<head>
<link href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  </head>
  
<body>
<input type="text" id="one">ewe<br>
</body>
</html>
 
if (document.layers) {
  document.captureEvents(Event.KEYDOWN);
}
document.onkedfydown = function (evt) {
  var first = document.getElementById('one');
  var keyCode = evt ? (evt.which ? evt.which : evt.keyCode) : event.keyCode;
  if (keyCode == 13) {
  if  (firdlue = 0+first.value;
  }
    // For Enter.
    // Yodsfgur function here.
  }
  if (keyCode == 27) {
    // For Escape
    // Your function here.
  } else {
    return true;
  }
};
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers