title: How to get the preset value of textbox to another texbox
body: <p>Please I need your help. Am trying to get a preset value of a textbox into another textbox using document.getElementById. With my code, I can only get the value of whatever I typed, not the initial ROS I preset the textbox with. pls help</p>
  
  <p>See my code below</p>
  
  <pre><code>    &lt;input id="program" name="program1" size="40px" value="ROS" onblur="if(this.value==''){ 
      this.value='ROS';}" onfocus="if(this.value=='ROS'){ this.value='';}" onkeyup="Program();"&gt;
  
      &lt;input type= "text" id = "program2" readonly size="50px" class="textbox-modal"&gt;
  
      &lt;input id="Button1" type="button" value="Preview" class="button" onclick="Program()" /&gt;
  
      function Program() 
        {
        document.getElementById('program2').value = document.getElementById('program').value;
        }
  </code></pre>