title: How to get text from input box to a span
body: <p>I have got the HTML but I am not sure on how to get the input box into the span.
  I tried using <code>document.getElementById</code> but that didn't work. Any help would be great!</p>
  
  <pre><code>Name:
  &lt;p&gt;
    &lt;input type="text" name="fname" id="name"&gt;
  &lt;p&gt;
    &lt;button id= "button" onclick="namejs"&gt;Go&lt;/button&gt;
  &lt;p&gt;
    &lt;span id= "namespan"&gt;Name&lt;/span&gt;
  </code></pre>