A doubt
How to insert a value inside an href="" attribute with javascript
A doubt
How to insert a value inside an href="" attribute with javascript
just get the link and then set the value in the href attribute, follow an example code:
<a href="#" id="link">Teste</a>
var link = document.getElementById('link');
link.href = 'http://google.com'