title: html javascript output and converter bugs
body: <p>The converter is working fine, it looks for a match to the input and if it finds one, it converts it to the new value.</p>
  
  <p>The problem I am running into is that I can output the new value with document.write(userInput);</p>
  
  <p>But I dont know how to format or add html and text to the output.  Help!</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  &lt;h1&gt;Value Converter&lt;/h1&gt;
  
  &lt;input type="text" id="userInput"=&gt;Enter the Value&lt;/input&gt;
      &lt;button onclick="test()"&gt;Submit&lt;/button&gt;
      &lt;script&gt;
          function test()
              {
     var userInput = document.getElementById("userInput").value;
     if(userInput == "xxxx") {
        userInput="yyyy";
     }
     else if(userInput == "yyyy") {
        userInput="zzzz";
     }
     else {
        userInput="Not Found";
     }
          document.write("&lt;br /&gt;&lt;br /&gt;&lt;b&gt; The equivalent value is: &lt;/b&gt;") + (userInput) + ("&lt; br /&gt;&lt;br /&gt;&lt;a href="/test.html"&gt;&lt;b&gt;Click here to Start Over&lt;/b&gt;&lt;/a&gt;");      
          }
  
              // Need to fix the "reset" to go back to restart the program
  
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>