title: change ip inside link using javascript
body: <p>so my goal is to change ip address in link with user's current ip.
  This is script for returing current user ip address.</p>
  
  <pre><code>&lt;script type="text/javascript" src="https://l2.io/ip.js?var=userip"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
    var userip;
    document.write(userip); // write to html
  &lt;/script&gt;
  </code></pre>
  
  <p>Link example:</p>
  
  <pre><code>www.mysite.com/data/uploads/file.mp3?e=14512&amp;ip=IPHERE&amp;amp=blbablaba&amp;next=fasfass
  </code></pre>
  
  <p>How can I make to write user's ip to "IPHERE" place and link will look like:</p>
  
  <pre><code>&lt;a href="www.mysite.com/data/uploads/file.mp3?e=14512&amp;ip=123.123.123.123&amp;amp=blbablaba&amp;next=fasfass"&gt;link with ip&lt;/a&gt;
  </code></pre>
  
  <p>without changing anything else.</p>
  
  <p>Thanks.</p>