[Solved] How to combine page url and javascript? [closed]

[ad_1]

give it an ID then manipulate throw javascript

<a id="a1" href="#" rel="nofollow">GoToLink</a>

<script>
document.getElementById("a1").href="http://link.cu/abc="+window.location.href; 

</script>

1

[ad_2]

solved How to combine page url and javascript? [closed]