get url and add to href in jQuery or JS
<p>on a page i have a link </p>

<pre><code>&lt;a href="/_l/R/Contact.aspx" id="ctl00_SPLinkbutton1"&gt;&lt;span class="ms-splinkbutton-text"&gt;Contact&lt;/span&gt;&lt;/a&gt;
</code></pre>

<p>I would like to get the current url of the page i'm on and add it to the href. </p>

<p>So if I am on <code>http://mysite.com</code> when I click the link contact above I would go to the page <code>http://mysite.com/_l/R/Contact.aspx?source=http://mysite.com</code>.</p>

<p>Any ideas on how to achieve that in jQuery or JS?</p>
