html link javascript href code example
Example 1: link javascript html
<script type="text/javascript" src="monscript.js"></script>
Example 2: link href javascript
document.getElementById("Element").href = "http://example.com/";
<script type="text/javascript" src="monscript.js"></script>
document.getElementById("Element").href = "http://example.com/";