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>
<input type="text" id="x" value="return false onmouseup">
<input type="text" id="y" value="setTimeout">
</body>
</html>
 
x.onfocus = function () { this.select(); };
x.onmouseup = function () { return false; };
y.onfocus = function () {
  setTimeout(function () {
    y.select();
  }, 50);
};
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers