Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  FirstName:
  <input type="text" id="fname"><br/>
  LastName:
  <input type="text" id="lname"><br/>
  Full Name:
  <input type="text" id="fullname"> 
</body>
</html>
 
function joinName(){
document.getElementById('fullname').value=
  document.getElementById('fname').value+" "+
  document.getElementById('lname').value;
}
document.getElementById('fname').addEventListener('keydown',joinName);
document.getElementById('lname').addEventListener('keydown',joinName);
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers