I just finished an exam for one of my classes, and one of the questions required us to make a simple HTML document. We were supposed to include some JavaScript code that would copy the text from txtA and put it into txtB, but when I click the button, nothing happens.
function CopyAToB() {
  var a = document.form1.txtA.value;
  document.form1.txtB.value = a;
}div {
  text-align: center;
  color: red;
  font-size: 42px;
}<div>The University of Akron</div>
<form id="form1">
  <input type="text" id="txtA" />
  <input type="text" id="txtB" />
  <input type="button" value="Copy" onclick="CopyAToB();" />
</form> 
     
     
     
     
     
    