href tag javascript code example
Example 1: html link
<a href="https://www.google.com/">Link to google</a>
Example 2: html a href
<a href="http://example.com" >Link text</a>
Example 3: link href javascript
document.getElementById("Element").href = "http://example.com/";
Example 4: whatis a hrefd
The href attribute specifies the URL of the page the link goes to