title: how to detect what the user have typed in input box in html & javascript
body: <p>I want my input box to detect a text like this...</p>
  <pre><code>var input = document.getElemntById(&quot;inputbox&quot;);
  function buttonclick() {
    if ((input = &quot;h&quot;)) {
      input.innerHTML = &quot;hello&quot;;
    }
  }
  </code></pre>
  <p>This is by button click but i need to do this <code>onkeyup()</code> but I don't know how to..
  if the user type <code>h</code> the input box suddenly make it <code>hello</code>
  how do I do this?
  Thanks in advance.</p>