2
A doubt
How to insert a value into a href="" attribute with javascript
2
A doubt
How to insert a value into a href="" attribute with javascript
1
just get the link and then set the value in the href attribute, follow an example of the code:
<a href="#" id="link">Teste</a>
var link = document.getElementById('link');
link.href = 'http://google.com'
Browser other questions tagged javascript html
You are not signed in. Login or sign up in order to post.