title: Javascript Replace onKeyUp event with a string
body: <p>Im not very good at JavaScript and need a hand with what I think is an easy script.  Basically I have an input box that when the user types in a key it will disappear and change to whatever string I have.  I could only get the one letter to change, so that I have something to show what i mean.  So whenever a user types a message it gets replaced with an "h", what I want though is to have "hello" typed out letter by letter and not just "h" all the time and not "hello" all at once.</p>
  
  <p>Here is the code.</p>
  
  <pre><code>&lt;form action=# name=f1 id=f1 onsubmit="return false"&gt;
  
  &lt;input type=text name=t1 id=t1 value="" size=25 style="width:300px;" 
      onkeypress="if(this.value.match(/\D/))"
      onkeyup   ="this.value=this.value.replace(/\D/g,'h')"&gt;
  
  &lt;/form&gt;
  </code></pre>