I'm trying to append a query string parameter to a href on a page using some JS:

```
var url = "http://www.sitetest.com?source=" + value;
var element = document.getElementById('thislink');
element.setAttribute("href",url);

```

HTML

```
<a href="#" id="thislink">TEST THIS LINK</a>

```

So whatever parameter is in the URL needs to append to the link, its working however it puts in the current URL not the one I specify in "var url"? Thanks!

Live link here: <http://partnerweb.moneycorp.com/test-js-get-url.html?pc=tmgppc5>