title: I want to insert input values to link
body: <p>I have to link three input values to the link. How I can do in easy way and I click the link I want open the URL.</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;html&gt;
      &lt;script type="text/javascript"&gt;
          function changeText2(){
          var userInput0 = document.getElementById('userInput').value;
          var userInput11 = document.getElementById('userInput').value;
          var userInput21 = document.getElementById('userInput2').value;
          document.write("userinput");
      }
      &lt;/script&gt;
  
      Here is a link : &lt;a href="/00ON0000000FOHS?pc0=userInput0&amp;pn0=userInput11&amp;pv0=userInput21" &gt;nothing here yet&lt;/a&gt; &lt;br/&gt;
      &lt;input type='text' id='userInput' value='Enter Search String Here' /&gt;
      &lt;input type='text' id='userInput1' value='Enter Text Here' /&gt;
      &lt;input type='text' id='userInput2' value='Enter Text Here' /&gt;
      &lt;input type='button' onclick='changeText2()' value='Change Link'/&gt;
  &lt;/html&gt;
  </code></pre>