Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<script>
function writeMessage() {
  document.forms[0].mySecondInput.value = document.forms[0].myInput.value;
}
</script>
</head>
<body>
<p>The onkeyup event occurs when the a keyboard key is on its way UP.</p>
<form>
  Enter your name:
  <input type="text" name="myInput" onkeyup="writeMessage()" size="20">
  <input type="text" name="mySecondInput" size="20">
</form>
</body>
<!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_events_onkeyup2 by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:07:12 GMT -->
</html>