title: How to set parameter and its value to HREF dynamic using javascript
body: <p>I have a link like following</p>
  
  <pre><code>&lt;a id="dynamicLink" href="http://www.w3schools.com?userName=test"&gt;Visit W3Schools&lt;/a&gt;
  </code></pre>
  
  <p>I would like to change the value of <code>userName</code> from <code>test</code> to <code>test1</code>.</p>
  
  <p>How to do that using javascript? </p>
  
  <p>could someone help me on this?</p>