title: javascript for changing link's href in html page
body: <p>My problem is the following:</p>
  
  <p>I have a page with many links
  Some of them have a specific pattern : </p>
  
  <p><code>http://www.example.com/.../?parameter1=...&amp;parameter2=PARAMETER2</code> </p>
  
  <p>What i want to do is to change these links' href to the value of the parameter2 using JavaScript.
  For example if i have a link like : </p>
  
  <pre><code>&lt;a href="http://www.example.com/.../?parameter1=...&amp;parameter2=PARAMETER2"&gt;text here&lt;/a&gt; 
  </code></pre>
  
  <p>what i want to do after the script runs is to have a link like this:</p>
  
  <pre><code>&lt;a href="PARAMETER2"&gt;text here&lt;/a&gt;
  </code></pre>
  
  <p>Any suggestion would be truly appreciated!!!
  Thank you all in advance!!!</p>