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