title: HTML Button - How to dynamically change url content
body: <p>I am trying to change values in a button's URI to input texts values.</p>
  
  <pre><code>&lt;div class="numcontainer"&gt;
      &lt;input required="required" onchange="getNumber()" id="cnt" type="input" name="input" placeholder="ISD"&gt;
      &lt;input required="required" onchange="getNumber()" id="wano" type="input" name="input" placeholder="Enter number"&gt;
  &lt;/div&gt;
  &lt;button type="submit"  name="gowa" id="btngo"  onclick="location.href='myserver://send?phone=NumberPlaceHolder'"&gt;Go!&lt;/button&gt;
  </code></pre>
  
  <p><code>NumberPlaceHolder</code>: Trying to concatenate values enter in both input</p>
  
  <p>JS:</p>
  
  <pre><code>function getNumber() {
      document.getElementById('btngo').href.replace("NumberPlaceHolder",document.getElementById('cnt').value+document.getElementById('wano').value); 
  }
  </code></pre>
  
  <p>It does not work as expected. How can I solve this?</p>